Exception: Shutterstock::FailedResponse
- Defined in:
- lib/client/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg, code = 0) ⇒ FailedResponse
constructor
A new instance of FailedResponse.
Constructor Details
#initialize(msg, code = 0) ⇒ FailedResponse
Returns a new instance of FailedResponse.
14 15 16 17 |
# File 'lib/client/error.rb', line 14 def initialize(msg, code = 0) @code = code super(msg) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
12 13 14 |
# File 'lib/client/error.rb', line 12 def code @code end |