class Xdelivery::Client

Attributes

access_key[RW]
merchant_no[RW]

Public Class Methods

new(merchant_no, access_key) click to toggle source
# File lib/xdelivery/client.rb, line 6
def initialize(merchant_no, access_key)
  self.merchant_no = merchant_no
  self.access_key = access_key
end

Public Instance Methods

create_orders!() { |api| ... } click to toggle source
# File lib/xdelivery/client.rb, line 11
def create_orders!
  api = API::Orders.new(merchant_no, access_key)
  yield(api)
  api.create!
end
create_sales!() { |api| ... } click to toggle source
# File lib/xdelivery/client.rb, line 17
def create_sales!
  api = API::Sales.new(merchant_no, access_key)
  yield(api)
  api.create!
end
get_shops!() click to toggle source
# File lib/xdelivery/client.rb, line 29
def get_shops!
  API::Shops.new(merchant_no, access_key).get!
end
ping!() click to toggle source
# File lib/xdelivery/client.rb, line 33
def ping!
  api = API::Ping.new(merchant_no, access_key)
  api.ping!
end
update_products!() { |api| ... } click to toggle source
# File lib/xdelivery/client.rb, line 23
def update_products!
  api = API::Products.new(merchant_no, access_key)
  yield(api)
  api.update!
end