Class: Shopkit::Client

Inherits:
Object
  • Object
show all
Includes:
Orders, Products, Shop, Variants, Webhooks, Connection, Request, Traversal
Defined in:
lib/shopkit/client.rb,
lib/shopkit/client/shop.rb,
lib/shopkit/client/orders.rb,
lib/shopkit/client/products.rb,
lib/shopkit/client/variants.rb,
lib/shopkit/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/shopkit/client.rb', line 14

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