Class: Idnow::PostBinaryRequest

Inherits:
Net::HTTP::Post
  • Object
show all
Defined in:
lib/idnow/post_binary_request.rb

Instance Method Summary collapse

Constructor Details

#initialize(path, data) ⇒ PostBinaryRequest

Returns a new instance of PostBinaryRequest.



7
8
9
10
11
# File 'lib/idnow/post_binary_request.rb', line 7

def initialize(path, data)
  super(path)
  self['Content-Type'] = 'application/octet-stream'
  self.body = data
end