Class: Idnow::GetRequest

Inherits:
Net::HTTP::Get
  • Object
show all
Defined in:
lib/idnow/get_request.rb

Instance Method Summary collapse

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