Exception: Atom::Pub::ProtocolError
- Inherits:
-
StandardError
- Object
- StandardError
- Atom::Pub::ProtocolError
- Defined in:
- lib/atom/pub.rb
Instance Attribute Summary (collapse)
-
- (Object) response
readonly
Returns the value of attribute response.
Instance Method Summary (collapse)
-
- (ProtocolError) initialize(response)
constructor
A new instance of ProtocolError.
- - (Object) to_s
Constructor Details
- (ProtocolError) initialize(response)
A new instance of ProtocolError
21 22 23 |
# File 'lib/atom/pub.rb', line 21 def initialize(response) @response = response end |
Instance Attribute Details
- (Object) response (readonly)
Returns the value of attribute response
20 21 22 |
# File 'lib/atom/pub.rb', line 20 def response @response end |
Instance Method Details
- (Object) to_s
25 26 27 |
# File 'lib/atom/pub.rb', line 25 def to_s "Invalid response: #{@response}" end |