class Spree::API::Client
Constants
- VERSION
Attributes
api_endpoint[RW]
api_token[RW]
locale[RW]
per_page[RW]
Public Class Methods
new(api_endpoint, api_token, locale="en-US", options={})
click to toggle source
# File lib/spree-api-client.rb, line 57 def initialize(api_endpoint, api_token, locale="en-US", options={}) @api_endpoint = api_endpoint @api_token = api_token @locale = locale @per_page = options.fetch(:per_page, 30) end