Class: XapiScraper::Models::Components::GetConversationsV3Query

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

Overview

Parameters for getting XChat conversation list

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(cookie:, count: nil, all: nil, proxy: nil) ⇒ GetConversationsV3Query

Returns a new instance of GetConversationsV3Query.



43
44
45
46
47
48
# File 'lib/xapi_scraper/models/components/getconversationsv3query.rb', line 43

def initialize(cookie:, count: nil, all: nil, proxy: nil)
  @cookie = cookie
  @count = count
  @all = all
  @proxy = proxy
end

Instance Method Details

#==(other) ⇒ Object



51
52
53
54
55
56
57
58
# File 'lib/xapi_scraper/models/components/getconversationsv3query.rb', line 51

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @cookie == other.cookie
  return false unless @count == other.count
  return false unless @all == other.all
  return false unless @proxy == other.proxy
  true
end