Class: ExactTargetClient::Conf

Inherits:
Object
  • Object
show all
Defined in:
lib/exact_target_client/conf.rb

Constant Summary collapse

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 Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_endpointObject

Returns the value of attribute api_endpoint.



11
12
13
# File 'lib/exact_target_client/conf.rb', line 11

def api_endpoint
  @api_endpoint
end

.client_idObject

Returns the value of attribute client_id.



11
12
13
# File 'lib/exact_target_client/conf.rb', line 11

def client_id
  @client_id
end

.client_secretObject

Returns the value of attribute client_secret.



11
12
13
# File 'lib/exact_target_client/conf.rb', line 11

def client_secret
  @client_secret
end

.token_endpointObject

Returns the value of attribute token_endpoint.



11
12
13
# File 'lib/exact_target_client/conf.rb', line 11

def token_endpoint
  @token_endpoint
end

.wsdlObject

Returns the value of attribute wsdl.



11
12
13
# File 'lib/exact_target_client/conf.rb', line 11

def wsdl
  @wsdl
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



13
14
15
16
17
18
19
# File 'lib/exact_target_client/conf.rb', line 13

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