Class: XapiScraper::Models::Components::GetDmHistoryV3Query

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

Overview

Parameters for getting DM history via XChat v3

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(recipient:, cookie:, pin: nil, count: nil, all: nil, before: nil, proxy: nil) ⇒ GetDmHistoryV3Query

Returns a new instance of GetDmHistoryV3Query.



69
70
71
72
73
74
75
76
77
# File 'lib/xapi_scraper/models/components/getdmhistoryv3query.rb', line 69

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

Instance Method Details

#==(other) ⇒ Object



80
81
82
83
84
85
86
87
88
89
90
# File 'lib/xapi_scraper/models/components/getdmhistoryv3query.rb', line 80

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