Class: FlowCl::Client
- Inherits:
-
Object
- Object
- FlowCl::Client
- Defined in:
- lib/flow_cl/client.rb
Instance Method Summary collapse
-
#initialize(key, secret, options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Refund
#create_refund, #refund_status
Methods included from Plan
#create_plan, #delete_plan, #edit_plan, #plan, #plans
Methods included from Payment
#create_payment, #create_payment_email, #payment_status, #payment_status_by_commerce_id, #payment_status_by_flow_order, #payments
Methods included from Merchant
#create_merchant, #delete_merchant, #edit_merchant, #merchant, #merchants
Methods included from Invoice
#cancel_invoice, #invoice, #invoice_over_due, #retry_invoice
Methods included from Customer
#coupon, #coupons, #create_coupon, #create_customer, #customer, #customers, #delete_coupon, #delete_customer, #edit_coupon, #edit_customer, #register_customer, #register_customer_status, #unregister_customer
Constructor Details
#initialize(key, secret, options = {}) ⇒ Client
Returns a new instance of Client.
20 21 22 23 24 25 |
# File 'lib/flow_cl/client.rb', line 20 def initialize(key, secret, = {}) @key = key @secret = secret @sandbox = .delete(:sandbox) @logger = .delete(:logger) end |