Class: XapiScraper::Models::Components::GetDmMediaV3Query
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::GetDmMediaV3Query
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/getdmmediav3query.rb
Overview
Fetch one XChat media attachment and return a playable URL.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(conversation_id:, media_hash_key:, cookie:, key_version: nil, type_name: nil, filename: nil, pin: nil, proxy: nil) ⇒ GetDmMediaV3Query
constructor
A new instance of GetDmMediaV3Query.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(conversation_id:, media_hash_key:, cookie:, key_version: nil, type_name: nil, filename: nil, pin: nil, proxy: nil) ⇒ GetDmMediaV3Query
Returns a new instance of GetDmMediaV3Query.
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/xapi_scraper/models/components/getdmmediav3query.rb', line 76 def initialize( conversation_id:, media_hash_key:, cookie:, key_version: nil, type_name: nil, filename: nil, pin: nil, proxy: nil ) @conversation_id = conversation_id @media_hash_key = media_hash_key @cookie = @key_version = key_version @type_name = type_name @filename = filename @pin = pin @proxy = proxy end |
Instance Method Details
#==(other) ⇒ Object
97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/xapi_scraper/models/components/getdmmediav3query.rb', line 97 def ==(other) return false unless other.is_a?(self.class) return false unless @conversation_id == other.conversation_id return false unless @media_hash_key == other.media_hash_key return false unless @cookie == other. return false unless @key_version == other.key_version return false unless @type_name == other.type_name return false unless @filename == other.filename return false unless @pin == other.pin return false unless @proxy == other.proxy true end |