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

- (LoadError) initialize(response)

A new instance of LoadError



38
39
40
# File 'lib/atom/xml/parser.rb', line 38

def initialize(response)
  @response = response
end

Instance Attribute Details

- (Object) response (readonly)

Returns the value of attribute response



37
38
39
# File 'lib/atom/xml/parser.rb', line 37

def response
  @response
end

Instance Method Details

- (Object) to_s



42
43
44
# File 'lib/atom/xml/parser.rb', line 42

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