Exception: Atom::LoadError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/atom/xml/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ LoadError

Returns a new instance of LoadError.



48
49
50
# File 'lib/atom/xml/parser.rb', line 48

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



47
48
49
# File 'lib/atom/xml/parser.rb', line 47

def response
  @response
end

Instance Method Details

#to_sObject



52
53
54
# File 'lib/atom/xml/parser.rb', line 52

def to_s
  "Atom::LoadError: #{response.code} #{response.message}"
end