Class: Rafflesia::AuditLogActor

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_idObject

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_methodObject

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_idObject

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

#emailObject

Returns the value of attribute email.



22
23
24
# File 'lib/rafflesia/audit/audit_log_actor.rb', line 22

def email
  @email
end

#environment_idObject

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_nameObject

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_typeObject

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_nameObject

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_prefixObject

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_idObject

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_idObject

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