Class: Rafflesia::AuditLogListData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::AuditLogListData
- Defined in:
- lib/rafflesia/audit/audit_log_list_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ logs: :logs, row_count: :row_count }.freeze
Instance Attribute Summary collapse
-
#logs ⇒ Object
Returns the value of attribute logs.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ AuditLogListData
constructor
A new instance of AuditLogListData.
Constructor Details
#initialize(json) ⇒ AuditLogListData
Returns a new instance of AuditLogListData.
17 18 19 20 21 22 |
# File 'lib/rafflesia/audit/audit_log_list_data.rb', line 17 def initialize(json) super() hash = self.class.normalize(json) @logs = (hash[:logs] || []).map { |item| item ? Rafflesia::AuditLogRecord.new(item) : nil } @row_count = hash[:row_count] end |
Instance Attribute Details
#logs ⇒ Object
Returns the value of attribute logs.
13 14 15 |
# File 'lib/rafflesia/audit/audit_log_list_data.rb', line 13 def logs @logs end |
#row_count ⇒ Object
Returns the value of attribute row_count.
13 14 15 |
# File 'lib/rafflesia/audit/audit_log_list_data.rb', line 13 def row_count @row_count end |