Class: FotoliaRest::FotoliaApiError

Inherits:
Object
  • Object
show all
Defined in:
lib/fotolia_rest/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message)
  @code = code
  @message = message
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/fotolia_rest/exceptions.rb', line 3

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/fotolia_rest/exceptions.rb', line 3

def message
  @message
end