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.
35 36 37 |
# File 'lib/atom/xml/parser.rb', line 35 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
34 35 36 |
# File 'lib/atom/xml/parser.rb', line 34 def response @response end |
Instance Method Details
#to_s ⇒ Object
39 40 41 |
# File 'lib/atom/xml/parser.rb', line 39 def to_s "Atom::LoadError: #{response.code} #{response.}" end |