Class: XapiScraper::Models::Components::SendDmV3Query
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::SendDmV3Query
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/senddmv3query.rb
Overview
Parameters for sending DM via XChat v3
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(recipient:, text:, cookie:, media_urls: nil, video_url: nil, pin: nil, proxy: nil) ⇒ SendDmV3Query
constructor
A new instance of SendDmV3Query.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(recipient:, text:, cookie:, media_urls: nil, video_url: nil, pin: nil, proxy: nil) ⇒ SendDmV3Query
Returns a new instance of SendDmV3Query.
65 66 67 68 69 70 71 72 73 |
# File 'lib/xapi_scraper/models/components/senddmv3query.rb', line 65 def initialize(recipient:, text:, cookie:, media_urls: nil, video_url: nil, pin: nil, proxy: nil) @recipient = recipient @text = text @cookie = @media_urls = media_urls @video_url = video_url @pin = pin @proxy = proxy end |
Instance Method Details
#==(other) ⇒ Object
76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/xapi_scraper/models/components/senddmv3query.rb', line 76 def ==(other) return false unless other.is_a?(self.class) return false unless @recipient == other.recipient return false unless @text == other.text return false unless @cookie == other. return false unless @media_urls == other.media_urls return false unless @video_url == other.video_url return false unless @pin == other.pin return false unless @proxy == other.proxy true end |