Class: FlowCl::Client

Inherits:
Object
  • Object
show all
Includes:
Customer, Invoice, Merchant, Payment, Plan, Refund
Defined in:
lib/flow_cl/client.rb

Instance Method Summary collapse

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, options = {})
  @key = key
  @secret = secret
  @sandbox = options.delete(:sandbox)
  @logger = options.delete(:logger)
end