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.



40
41
42
# File 'lib/atom/xml/parser.rb', line 40

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject (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_sObject



44
45
46
# File 'lib/atom/xml/parser.rb', line 44

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