Exception: Flickr::FailedResponse

Inherits:
Error
  • Object
show all
Defined in:
lib/flickr/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code, req) ⇒ FailedResponse

Returns a new instance of FailedResponse.



9
10
11
12
# File 'lib/flickr/errors.rb', line 9

def initialize(msg, code, req)
  @code = code
  super("'#{req}' - #{msg}")
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



7
8
9
# File 'lib/flickr/errors.rb', line 7

def code
  @code
end