Sha256: cf9fa4a15224f55c416e4dd2f52d4009e87c9ff85845e8c6b25faa8b3146e736

Contents?: true

Size: 261 Bytes

Versions: 1

Compression:

Stored size: 261 Bytes

Contents

module InsalesApi
  class Base < ActiveResource::Base
    self.format = :xml

    def self.configure(api_key, shop, password)
      self.user     = api_key
      self.site     = "http://#{shop}/admin/"
      self.password = password
      nil
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
insales_api-0.0.13 lib/insales_api/base.rb