Sha256: f065fb70f927fe61c02e35e3bef9843613fb199e03fd6913097b31cb02b4864a
Contents?: true
Size: 664 Bytes
Versions: 2
Compression:
Stored size: 664 Bytes
Contents
module Xdelivery class Client attr_accessor :merchant_no, :access_key def initialize(merchant_no, access_key) self.merchant_no = merchant_no self.access_key = access_key end def create_orders! api = API::Orders.new(merchant_no, access_key) yield(api) api.create! end def create_sales! api = API::Sales.new(merchant_no, access_key) yield(api) api.create! end def update_products! api = API::Products.new(merchant_no, access_key) yield(api) api.update! end def ping! api = API::Ping.new(merchant_no, access_key) api.ping! end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xdelivery-0.1.6 | lib/xdelivery/client.rb |
xdelivery-0.1.5 | lib/xdelivery/client.rb |