Class: XapiScraper::Models::Components::ConversationV3Model

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/xapi_scraper/models/components/conversationv3model.rb

Overview

XChat conversation item

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(conversation_id:, type:, is_muted:, participants:) ⇒ ConversationV3Model

Returns a new instance of ConversationV3Model.



38
39
40
41
42
43
# File 'lib/xapi_scraper/models/components/conversationv3model.rb', line 38

def initialize(conversation_id:, type:, is_muted:, participants:)
  @conversation_id = conversation_id
  @type = type
  @is_muted = is_muted
  @participants = participants
end

Instance Method Details

#==(other) ⇒ Object



46
47
48
49
50
51
52
53
# File 'lib/xapi_scraper/models/components/conversationv3model.rb', line 46

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @conversation_id == other.conversation_id
  return false unless @type == other.type
  return false unless @is_muted == other.is_muted
  return false unless @participants == other.participants
  true
end