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