Class: ArmorPayments::Notes
- Defined in:
- lib/armor_payments/api/notes.rb
Instance Attribute Summary
Attributes inherited from Resource
#authenticator, #host, #uri_root
Instance Method Summary collapse
Methods inherited from Resource
#all, #connection, #get, #initialize, #request, #resource_name, #uri
Constructor Details
This class inherits a constructor from ArmorPayments::Resource
Instance Method Details
#create(data) ⇒ Object
4 5 6 7 |
# File 'lib/armor_payments/api/notes.rb', line 4 def create data headers = authenticator.secure_headers 'post', uri request :post, { path: uri, headers: headers, body: JSON.generate(data) } end |