Exception: Seekmodo::Sdk::Storefront::Transport::ServerError

Inherits:
Error
  • Object
show all
Defined in:
lib/seekmodo/sdk/storefront/transport.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#tool

Instance Method Summary collapse

Constructor Details

#initialize(status, body, tool) ⇒ ServerError

Returns a new instance of ServerError.



170
171
172
173
174
# File 'lib/seekmodo/sdk/storefront/transport.rb', line 170

def initialize(status, body, tool)
  @status = status
  @body = body
  super(tool)
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



168
169
170
# File 'lib/seekmodo/sdk/storefront/transport.rb', line 168

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



168
169
170
# File 'lib/seekmodo/sdk/storefront/transport.rb', line 168

def status
  @status
end