Sha256: a5697565d4f4c5cbcb8bef7c544f2935918c44b36a5743be23dc7084dcbc3079

Contents?: true

Size: 763 Bytes

Versions: 7

Compression:

Stored size: 763 Bytes

Contents

module Cashstar
  # Wrapper for the CashStar REST API
  #
  # @note All methods have been separated into modules
  class Client < API
    # Require client method modules after initializing the Client class in
    # order to avoid a superclass mismatch error, allowing those modules to be
    # Client-namespaced.
    require 'cashstar/client/merchants'
    require 'cashstar/client/catalog'
    require 'cashstar/client/faceplates'
    require 'cashstar/client/order'
    require 'cashstar/client/gift_card'


    alias :api_endpoint :endpoint

    include Cashstar::Client::Merchants
    include Cashstar::Client::Faceplates
    include Cashstar::Client::Catalog
    include Cashstar::Client::OrderMethods
    include Cashstar::Client::GiftCardMethods
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cashstar-ruby-0.2.4 lib/cashstar/client.rb
cashstar-ruby-0.2.3 lib/cashstar/client.rb
cashstar-ruby-0.2.2 lib/cashstar/client.rb
cashstar-ruby-0.2.1 lib/cashstar/client.rb
cashstar-ruby-0.2.0 lib/cashstar/client.rb
cashstar-ruby-0.1.8 lib/cashstar/client.rb
cashstar-ruby-0.1.7 lib/cashstar/client.rb