Class: CheckMobi::Response
- Inherits:
-
Object
- Object
- CheckMobi::Response
- Extended by:
- Forwardable
- Defined in:
- lib/check_mobi/response.rb
Instance Method Summary collapse
-
#initialize(http_client) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(http_client) ⇒ Response
Returns a new instance of Response.
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 |