Class: Tarpon::Request::Receipt

Inherits:
Base
  • Object
show all
Defined in:
lib/tarpon/request/receipt.rb

Constant Summary

Constants inherited from Base

Base::DEFAULT_HEADERS

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Tarpon::Request::Base

Instance Method Details

#create(platform:, **data) ⇒ Object



6
7
8
9
# File 'lib/tarpon/request/receipt.rb', line 6

def create(platform:, **data)
  headers = { 'X-Platform' => platform }
  perform(method: :post, headers: headers, path: '/receipts', key: :public, body: data)
end