Module: SamcartAPI

Defined in:
lib/samcart_api.rb,
lib/samcart_api/order.rb,
lib/samcart_api/client.rb,
lib/samcart_api/product.rb,
lib/samcart_api/version.rb,
lib/samcart_api/paginator.rb,
lib/samcart_api/api_request.rb,
lib/samcart_api/samcart_object.rb

Defined Under Namespace

Classes: ApiError, ApiRequest, AuthenticationError, Client, Configuration, ConfigurationError, Error, Order, Paginator, Product, SamcartObject

Constant Summary collapse

VERSION =
'1.0.0'

Class Method Summary collapse

Class Method Details

.configurationObject



28
29
30
# File 'lib/samcart_api.rb', line 28

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



24
25
26
# File 'lib/samcart_api.rb', line 24

def configure
  yield(configuration)
end