Class: PCPServerSDK::CommunicatorConfiguration
- Inherits:
-
Object
- Object
- PCPServerSDK::CommunicatorConfiguration
- Defined in:
- lib/PCP-server-Ruby-SDK/communicator_configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#api_secret ⇒ Object
readonly
Returns the value of attribute api_secret.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#http_client ⇒ Object
Returns the value of attribute http_client.
Instance Method Summary collapse
-
#initialize(api_key, api_secret, host, http_client = nil) ⇒ CommunicatorConfiguration
constructor
The constructor.
Constructor Details
#initialize(api_key, api_secret, host, http_client = nil) ⇒ CommunicatorConfiguration
The constructor
12 13 14 15 16 17 |
# File 'lib/PCP-server-Ruby-SDK/communicator_configuration.rb', line 12 def initialize(api_key, api_secret, host, http_client = nil) @api_key = api_key @api_secret = api_secret @host = host @http_client = http_client end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
4 5 6 |
# File 'lib/PCP-server-Ruby-SDK/communicator_configuration.rb', line 4 def api_key @api_key end |
#api_secret ⇒ Object (readonly)
Returns the value of attribute api_secret.
4 5 6 |
# File 'lib/PCP-server-Ruby-SDK/communicator_configuration.rb', line 4 def api_secret @api_secret end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
4 5 6 |
# File 'lib/PCP-server-Ruby-SDK/communicator_configuration.rb', line 4 def host @host end |
#http_client ⇒ Object
Returns the value of attribute http_client.
5 6 7 |
# File 'lib/PCP-server-Ruby-SDK/communicator_configuration.rb', line 5 def http_client @http_client end |