Class: Rafflesia::AuditLogActor
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::AuditLogActor
- Defined in:
- lib/rafflesia/audit/audit_log_actor.rb
Constant Summary collapse
- HASH_ATTRS =
{ api_key_id: :api_key_id, auth_method: :auth_method, credential_id: :credential_id, email: :email, environment_id: :environment_id, environment_name: :environment_name, environment_type: :environment_type, key_name: :key_name, key_prefix: :key_prefix, organization_id: :organization_id, user_id: :user_id }.freeze
Instance Attribute Summary collapse
-
#api_key_id ⇒ Object
Returns the value of attribute api_key_id.
-
#auth_method ⇒ Object
Returns the value of attribute auth_method.
-
#credential_id ⇒ Object
Returns the value of attribute credential_id.
-
#email ⇒ Object
Returns the value of attribute email.
-
#environment_id ⇒ Object
Returns the value of attribute environment_id.
-
#environment_name ⇒ Object
Returns the value of attribute environment_name.
-
#environment_type ⇒ Object
Returns the value of attribute environment_type.
-
#key_name ⇒ Object
Returns the value of attribute key_name.
-
#key_prefix ⇒ Object
Returns the value of attribute key_prefix.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ AuditLogActor
constructor
A new instance of AuditLogActor.
Constructor Details
#initialize(json) ⇒ AuditLogActor
Returns a new instance of AuditLogActor.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/rafflesia/audit/audit_log_actor.rb', line 35 def initialize(json) super() hash = self.class.normalize(json) @api_key_id = hash[:api_key_id] @auth_method = hash[:auth_method] @credential_id = hash[:credential_id] @email = hash[:email] @environment_id = hash[:environment_id] @environment_name = hash[:environment_name] @environment_type = hash[:environment_type] @key_name = hash[:key_name] @key_prefix = hash[:key_prefix] @organization_id = hash[:organization_id] @user_id = hash[:user_id] end |
Instance Attribute Details
#api_key_id ⇒ Object
Returns the value of attribute api_key_id.
22 23 24 |
# File 'lib/rafflesia/audit/audit_log_actor.rb', line 22 def api_key_id @api_key_id end |
#auth_method ⇒ Object
Returns the value of attribute auth_method.
22 23 24 |
# File 'lib/rafflesia/audit/audit_log_actor.rb', line 22 def auth_method @auth_method end |
#credential_id ⇒ Object
Returns the value of attribute credential_id.
22 23 24 |
# File 'lib/rafflesia/audit/audit_log_actor.rb', line 22 def credential_id @credential_id end |
#email ⇒ Object
Returns the value of attribute email.
22 23 24 |
# File 'lib/rafflesia/audit/audit_log_actor.rb', line 22 def email @email end |
#environment_id ⇒ Object
Returns the value of attribute environment_id.
22 23 24 |
# File 'lib/rafflesia/audit/audit_log_actor.rb', line 22 def environment_id @environment_id end |
#environment_name ⇒ Object
Returns the value of attribute environment_name.
22 23 24 |
# File 'lib/rafflesia/audit/audit_log_actor.rb', line 22 def environment_name @environment_name end |
#environment_type ⇒ Object
Returns the value of attribute environment_type.
22 23 24 |
# File 'lib/rafflesia/audit/audit_log_actor.rb', line 22 def environment_type @environment_type end |
#key_name ⇒ Object
Returns the value of attribute key_name.
22 23 24 |
# File 'lib/rafflesia/audit/audit_log_actor.rb', line 22 def key_name @key_name end |
#key_prefix ⇒ Object
Returns the value of attribute key_prefix.
22 23 24 |
# File 'lib/rafflesia/audit/audit_log_actor.rb', line 22 def key_prefix @key_prefix end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
22 23 24 |
# File 'lib/rafflesia/audit/audit_log_actor.rb', line 22 def organization_id @organization_id end |
#user_id ⇒ Object
Returns the value of attribute user_id.
22 23 24 |
# File 'lib/rafflesia/audit/audit_log_actor.rb', line 22 def user_id @user_id end |