Exception: FlickRaw::FailedResponse

Inherits:
Error
  • Object
show all
Defined in:
lib/flickraw/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code, req) ⇒ FailedResponse

Returns a new instance of FailedResponse


52
53
54
55
# File 'lib/flickraw/response.rb', line 52

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code


50
51
52
# File 'lib/flickraw/response.rb', line 50

def code
  @code
end