Class: Invoiced::Charge
Constant Summary collapse
- OBJECT_NAME =
'charge'
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
Methods inherited from Object
#[], #[]=, #add_accessors, #build_endpoint, #each, #endpoint, #endpoint_base, #initialize, #inspect, #keys, #metaclass, #method_missing, #refresh_from, #remove_accessors, #retrieve, #set_endpoint_base, #to_hash, #to_json, #to_s, #values
Constructor Details
This class inherits a constructor from Invoiced::Object
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Invoiced::Object
Instance Method Details
#create(body = {}, opts = {}) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/invoiced/charge.rb', line 5 def create(body={}, opts={}) response = @client.request(:post, endpoint(), body, opts) payment = Payment.new(@client) Util.convert_to_object(payment, response[:body]) end |