Class: Idnow::GetRequest
- Inherits:
-
Net::HTTP::Get
- Object
- Net::HTTP::Get
- Idnow::GetRequest
- Defined in:
- lib/idnow/get_request.rb
Instance Method Summary collapse
-
#initialize(path, content_type = 'application/json') ⇒ GetRequest
constructor
A new instance of GetRequest.
Constructor Details
#initialize(path, content_type = 'application/json') ⇒ GetRequest
Returns a new instance of GetRequest.
7 8 9 10 |
# File 'lib/idnow/get_request.rb', line 7 def initialize(path, content_type = 'application/json') super(path) self['Content-Type'] = content_type end |