Exception: EposNowClient::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/epos_now_client/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, status: nil, body: nil) ⇒ Error

Returns a new instance of Error.



7
8
9
10
11
# File 'lib/epos_now_client/error.rb', line 7

def initialize(message = nil, status: nil, body: nil)
  @status = status
  @body = body
  super(message)
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



5
6
7
# File 'lib/epos_now_client/error.rb', line 5

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



5
6
7
# File 'lib/epos_now_client/error.rb', line 5

def status
  @status
end