Class: XapiScraper::Models::Components::CreateThreadQuery
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::CreateThreadQuery
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/createthreadquery.rb
Overview
Parameters for creating a tweet thread
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(items:, cookie:, proxy: nil) ⇒ CreateThreadQuery
constructor
A new instance of CreateThreadQuery.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(items:, cookie:, proxy: nil) ⇒ CreateThreadQuery
Returns a new instance of CreateThreadQuery.
34 35 36 37 38 |
# File 'lib/xapi_scraper/models/components/createthreadquery.rb', line 34 def initialize(items:, cookie:, proxy: nil) @items = items @cookie = @proxy = proxy end |
Instance Method Details
#==(other) ⇒ Object
41 42 43 44 45 46 47 |
# File 'lib/xapi_scraper/models/components/createthreadquery.rb', line 41 def ==(other) return false unless other.is_a?(self.class) return false unless @items == other.items return false unless @cookie == other. return false unless @proxy == other.proxy true end |