Class: Kitpay::Client

Inherits:
Object
  • Object
show all
Includes:
Orders, Products, Shop, Variants, Webhooks, Connection, Request, Traversal
Defined in:
lib/kitpay/client.rb,
lib/kitpay/client/shop.rb,
lib/kitpay/client/orders.rb,
lib/kitpay/client/products.rb,
lib/kitpay/client/variants.rb,
lib/kitpay/client/webhooks.rb

Defined Under Namespace

Modules: Orders, Products, Shop, Variants, Webhooks

Instance Method Summary collapse

Methods included from Webhooks

#create_webhook

Methods included from Variants

#update_variant

Methods included from Products

#product, #products

Methods included from Orders

#order, #orders

Methods included from Shop

#shop

Methods included from Traversal

#traversal

Methods included from Request

#delete, #get, #post, #put

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



14
15
16
17
18
19
# File 'lib/kitpay/client.rb', line 14

def initialize(options={})
  options = Kitpay.options.merge(options)
  Configuration::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end