Sha256: 15c581c8a86f16d144ad8dbf0c197812950e6a32a1e673185cbc21d481eafc5c

Contents?: true

Size: 580 Bytes

Versions: 3

Compression:

Stored size: 580 Bytes

Contents

module ExactTargetClient
  class Conf

    DEFAULT_TOKEN_ENDPOINT = 'https://auth.exacttargetapis.com/v1/requestToken'
    DEFAULT_API_ENDPOINT = 'https://www.exacttargetapis.com'
    DEFAULT_WSDL = 'https://webservice.s%{instance}.exacttarget.com/etframework.wsdl'

    class << self

      attr_accessor :wsdl, :token_endpoint, :api_endpoint, :client_id, :client_secret

      def configure
        @token_endpoint = DEFAULT_TOKEN_ENDPOINT
        @api_endpoint = DEFAULT_API_ENDPOINT
        @wsdl = DEFAULT_WSDL
        yield self
        true
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
exact-target-client-0.1.1 lib/exact_target_client/conf.rb
exact-target-client-0.1.0 lib/exact_target_client/conf.rb
exact-target-client-0.0.5 lib/exact_target_client/conf.rb