Class: Conversant::V3::Base
- Inherits:
-
Object
- Object
- Conversant::V3::Base
- Includes:
- HttpClient
- Defined in:
- lib/conversant/v3/base.rb
Direct Known Subclasses
Services::CDN, Services::LMS, Services::OSS, Services::Portal, Services::VMS
Constant Summary
Constants included from HttpClient
HttpClient::LOGIN_URL, HttpClient::PORTAL_SESSION_REDIS_KEY, HttpClient::SSO_GW_SESSION2_REDIS_KEY
Instance Attribute Summary collapse
-
#customer_id ⇒ Object
readonly
Returns the value of attribute customer_id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(customer_id, type = 2) ⇒ Base
constructor
A new instance of Base.
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_id ⇒ Object (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 |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/conversant/v3/base.rb', line 8 def type @type end |