Class: WorkOS::AuditLogEventContext
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AuditLogEventContext
- Defined in:
- lib/workos/audit_logs/audit_log_event_context.rb
Constant Summary collapse
- HASH_ATTRS =
{ location: :location, user_agent: :user_agent }.freeze
Instance Attribute Summary collapse
-
#location ⇒ Object
Returns the value of attribute location.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ AuditLogEventContext
constructor
A new instance of AuditLogEventContext.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ AuditLogEventContext
Returns a new instance of AuditLogEventContext.
16 17 18 19 20 |
# File 'lib/workos/audit_logs/audit_log_event_context.rb', line 16 def initialize(json) hash = self.class.normalize(json) @location = hash[:location] @user_agent = hash[:user_agent] end |
Instance Attribute Details
#location ⇒ Object
Returns the value of attribute location.
12 13 14 |
# File 'lib/workos/audit_logs/audit_log_event_context.rb', line 12 def location @location end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
12 13 14 |
# File 'lib/workos/audit_logs/audit_log_event_context.rb', line 12 def user_agent @user_agent end |