Class: Conversant::V3::Base

Inherits:
Object
  • Object
show all
Includes:
HttpClient
Defined in:
lib/conversant/v3/base.rb

Constant Summary

Constants included from HttpClient

HttpClient::LOGIN_URL, HttpClient::PORTAL_SESSION_REDIS_KEY, HttpClient::SSO_GW_SESSION2_REDIS_KEY

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HttpClient

#authenticate, #cookie_jar, #cookie_jar=, #debug_log, #request, #sso_login

Constructor Details

#initialize(customer_id, type = 2) ⇒ Base

Returns a new instance of Base.



10
11
12
13
14
# File 'lib/conversant/v3/base.rb', line 10

def initialize(customer_id, type = 2)
  @customer_id = customer_id
  @type = type
  validate_configuration!
end

Instance Attribute Details

#customer_idObject (readonly)

Returns the value of attribute customer_id.



8
9
10
# File 'lib/conversant/v3/base.rb', line 8

def customer_id
  @customer_id
end

#typeObject (readonly)

Returns the value of attribute type.



8
9
10
# File 'lib/conversant/v3/base.rb', line 8

def type
  @type
end