Class: FidorApi::ForbiddenError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code, key) ⇒ ForbiddenError

Returns a new instance of ForbiddenError.



12
13
14
15
16
# File 'lib/fidor_api/errors.rb', line 12

def initialize(message, code, key)
  super(message)
  self.code = code
  self.key  = key
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



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

def code
  @code
end

#keyObject

Returns the value of attribute key.



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

def key
  @key
end