class ArmorPayments::Offers

Public Instance Methods

documents(offer_id) click to toggle source
# File lib/armor_payments/api/offers.rb, line 9
def documents offer_id
  ArmorPayments::Documents.new(host, authenticator, uri(offer_id))
end
notes(offer_id) click to toggle source
# File lib/armor_payments/api/offers.rb, line 13
def notes offer_id
  ArmorPayments::Notes.new(host, authenticator, uri(offer_id))
end
update(offer_id, data) click to toggle source
# File lib/armor_payments/api/offers.rb, line 4
def update offer_id, data
  headers = authenticator.secure_headers 'post', uri(offer_id)
  request :post, { path: uri(offer_id), headers: headers, body: JSON.generate(data) }
end