Sha256: 20ce5b5a2363afb3b4562f62ca01b060879dfd642d70804f735e43fc4f517117

Contents?: true

Size: 418 Bytes

Versions: 3

Compression:

Stored size: 418 Bytes

Contents

module MWS

  class Base
    
    attr_accessor :connection

    def initialize(options={})
      @connection = MWS::Connection.new(options)
    end

    def orders
      @orders ||= MWS::API::Order.new(@connection)
    end

    def inventory
      @inventory ||= MWS::API::Inventory.new(@connection)
    end


    # serves as a server ping
    def self.server_time
      MWS::Connection.server_time
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-mws-0.0.4 lib/ruby-mws/base.rb
ruby-mws-0.0.3 lib/ruby-mws/base.rb
ruby-mws-0.0.2 lib/ruby-mws/base.rb