Class: CheckMobi::Response

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/check_mobi/response.rb

Instance Method Summary collapse

Constructor Details

#initialize(http_client) ⇒ Response

Returns a new instance of Response.

Raises:



17
18
19
20
# File 'lib/check_mobi/response.rb', line 17

def initialize(http_client)
  raise RequiredFieldError, 'parameter should be a CheckMobi::Client, which is missing' unless http_client.kind_of? CheckMobi::Client
  @http_client = http_client
end