Class: Conductor::Orkes::Models::AccessKey
- Inherits:
-
Http::Models::BaseModel
- Object
- Http::Models::BaseModel
- Conductor::Orkes::Models::AccessKey
- Defined in:
- lib/conductor/orkes/models/access_key.rb
Overview
AccessKey model - represents an application access key
Constant Summary collapse
- SWAGGER_TYPES =
{ id: 'String', status: 'String', created_at: 'Integer' }.freeze
- ATTRIBUTE_MAP =
{ id: :id, status: :status, created_at: :createdAt }.freeze
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ AccessKey
constructor
A new instance of AccessKey.
Methods inherited from Http::Models::BaseModel
attribute_map, deserialize_model, deserialize_value, find_model_class, from_hash, from_json, parse_datetime, swagger_types, #to_h, #to_json
Constructor Details
#initialize(params = {}) ⇒ AccessKey
Returns a new instance of AccessKey.
28 29 30 31 32 |
# File 'lib/conductor/orkes/models/access_key.rb', line 28 def initialize(params = {}) @id = params[:id] @status = params[:status] || AccessKeyStatus::ACTIVE @created_at = params[:created_at] end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
26 27 28 |
# File 'lib/conductor/orkes/models/access_key.rb', line 26 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
26 27 28 |
# File 'lib/conductor/orkes/models/access_key.rb', line 26 def id @id end |
#status ⇒ Object
Returns the value of attribute status.
26 27 28 |
# File 'lib/conductor/orkes/models/access_key.rb', line 26 def status @status end |