Sha256: 606101880ebd3b2f912408e57eea43df2a47531a6ffd1c092a40b70006efff39
Contents?: true
Size: 1.55 KB
Versions: 2
Compression:
Stored size: 1.55 KB
Contents
require 'faraday_middleware' require "spree-api-client/version" require 'spree-api-client/connection' require 'spree-api-client/request' require 'spree-api-client/products' require 'spree-api-client/variants' require 'spree-api-client/orders' require 'spree-api-client/taxonomies' require 'spree-api-client/addresses' require 'spree-api-client/countries' require 'spree-api-client/zones' require 'spree-api-client/properties' require 'spree-api-client/line_items' require 'spree-api-client/return_authorizations' require 'spree-api-client/taxons' require 'spree-api-client/payments' require 'spree-api-client/shipments' module Spree module API class Client include Spree::API::Client::Connection include Spree::API::Client::Request include Spree::API::Client::Products include Spree::API::Client::Variants include Spree::API::Client::Orders include Spree::API::Client::Taxonomies include Spree::API::Client::Addresses include Spree::API::Client::Countries include Spree::API::Client::Zones include Spree::API::Client::Properties include Spree::API::Client::LineItems include Spree::API::Client::ReturnAuthorizations include Spree::API::Client::Taxons include Spree::API::Client::Payments include Spree::API::Client::Shipments attr_accessor :api_endpoint, :api_token, :per_page def initialize(api_endpoint, api_token, options={}) @api_endpoint = api_endpoint @api_token = api_token @per_page = options.fetch(:per_page, 30) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree-api-client-0.0.2 | lib/spree-api-client.rb |
spree-api-client-0.0.1 | lib/spree-api-client.rb |