Sha256: 91a369c383971b131fe4b1e3eacf2195219cc230aff4cbcc1bc8013f84e949e2
Contents?: true
Size: 952 Bytes
Versions: 6
Compression:
Stored size: 952 Bytes
Contents
module Chartmogul class Client BASE_URI = 'https://api.chartmogul.com' attr_reader :account_token, :secret_key # Public: Constructor. # # account_token - The String ChartMogul account token. # secret_key - The String ChartMogul secret key. def initialize(account_token: nil, secret_key: nil) @account_token = account_token @secret_key = secret_key end # Public: Get userpwd. # # Returns the String. def userpwd "#{account_token}:#{secret_key}" end # Public: Get import API. # # Returns the instance of Chartmogul::V1::Import. def import Chartmogul::V1::Import.new(self) end # Public: Get customers API. # # Returns the instance of Chartmogul::V1::Customers. def customers Chartmogul::V1::Customers.new(self) end end end require 'chartmogul/v1/base' require 'chartmogul/v1/import' require 'chartmogul/v1/customers'
Version data entries
6 entries across 6 versions & 1 rubygems