Exception: ChargeIO::Unauthorized

Inherits:
StandardError
  • Object
show all
Defined in:
lib/chargeio/errors/unauthorized.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, entity_id = nil) ⇒ Unauthorized

Returns a new instance of Unauthorized.


5
6
7
8
# File 'lib/chargeio/errors/unauthorized.rb', line 5

def initialize(message, entity_id=nil)
  super(message)
  @entity_id = entity_id
end

Instance Attribute Details

#entity_idObject

Returns the value of attribute entity_id


3
4
5
# File 'lib/chargeio/errors/unauthorized.rb', line 3

def entity_id
  @entity_id
end