Exception: Atom::LoadError
- Inherits:
-
StandardError
- Object
- StandardError
- Atom::LoadError
- Defined in:
- lib/atom/xml/parser.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ LoadError
constructor
A new instance of LoadError.
- #to_s ⇒ Object
Constructor Details
#initialize(response) ⇒ LoadError
Returns a new instance of LoadError.
40 41 42 |
# File 'lib/atom/xml/parser.rb', line 40 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
39 40 41 |
# File 'lib/atom/xml/parser.rb', line 39 def response @response end |
Instance Method Details
#to_s ⇒ Object
44 45 46 |
# File 'lib/atom/xml/parser.rb', line 44 def to_s "Atom::LoadError: #{response.code} #{response.}" end |