Class: TXTextControl::ReportingCloud::APIKey
- Inherits:
-
Object
- Object
- TXTextControl::ReportingCloud::APIKey
- Defined in:
- lib/txtextcontrol/reportingcloud/api_key.rb
Overview
Represents a ReportingCloud API key object.
Instance Attribute Summary collapse
-
#is_active ⇒ Boolean
Specifies whether the API Key is active or not (not used yet).
-
#key ⇒ String
The actual API Key that belongs to the account.
Instance Method Summary collapse
-
#initialize(key, is_active = true) ⇒ APIKey
constructor
A new instance of APIKey.
Constructor Details
#initialize(key, is_active = true) ⇒ APIKey
Returns a new instance of APIKey
26 27 28 29 |
# File 'lib/txtextcontrol/reportingcloud/api_key.rb', line 26 def initialize(key, is_active = true) self.key = key @is_active = is_active end |
Instance Attribute Details
#is_active ⇒ Boolean
Specifies whether the API Key is active or not (not used yet).
21 22 23 |
# File 'lib/txtextcontrol/reportingcloud/api_key.rb', line 21 def is_active @is_active end |
#key ⇒ String
The actual API Key that belongs to the account.
21 22 23 |
# File 'lib/txtextcontrol/reportingcloud/api_key.rb', line 21 def key @key end |