Class: Clerk::Models::Components::LogGroup
- Inherits:
-
Object
- Object
- Clerk::Models::Components::LogGroup
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/loggroup.rb
Overview
An event group in the grouped log list: the events of one flow, such as a sign-in, shown as a single item.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, group_id:, group_type:, started_at:, event_count:, subject:, events:, has_more_events:, matched_event_count: nil, status: nil, status_label: nil, first_event: nil, events_cursor: nil) ⇒ LogGroup
constructor
A new instance of LogGroup.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, group_id:, group_type:, started_at:, event_count:, subject:, events:, has_more_events:, matched_event_count: nil, status: nil, status_label: nil, first_event: nil, events_cursor: nil) ⇒ LogGroup
Returns a new instance of LogGroup.
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/clerk/models/components/loggroup.rb', line 52 def initialize(object:, group_id:, group_type:, started_at:, event_count:, subject:, events:, has_more_events:, matched_event_count: nil, status: nil, status_label: nil, first_event: nil, events_cursor: nil) @object = object @group_id = group_id @group_type = group_type @started_at = started_at @event_count = event_count @subject = subject @events = events @has_more_events = has_more_events @matched_event_count = matched_event_count @status = status @status_label = status_label @first_event = first_event @events_cursor = events_cursor end |
Instance Method Details
#==(other) ⇒ Object
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/clerk/models/components/loggroup.rb', line 69 def ==(other) return false unless other.is_a? self.class return false unless @object == other.object return false unless @group_id == other.group_id return false unless @group_type == other.group_type return false unless @started_at == other.started_at return false unless @event_count == other.event_count return false unless @subject == other.subject return false unless @events == other.events return false unless @has_more_events == other.has_more_events return false unless @matched_event_count == other.matched_event_count return false unless @status == other.status return false unless @status_label == other.status_label return false unless @first_event == other.first_event return false unless @events_cursor == other.events_cursor true end |