Class: FotoliaRest::FotoliaApiError
- Inherits:
-
Object
- Object
- FotoliaRest::FotoliaApiError
- Defined in:
- lib/fotolia_rest/exceptions.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ FotoliaApiError
constructor
A new instance of FotoliaApiError.
Constructor Details
#initialize(code, message) ⇒ FotoliaApiError
Returns a new instance of FotoliaApiError.
4 5 6 7 |
# File 'lib/fotolia_rest/exceptions.rb', line 4 def initialize(code, ) @code = code @message = end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/fotolia_rest/exceptions.rb', line 3 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/fotolia_rest/exceptions.rb', line 3 def @message end |