Class: XapiScraper::Models::Components::GetAllTweetsRepliesCursorResponse

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(data:, has_next_page:, code: 200, msg: "success", next_cursor: nil) ⇒ GetAllTweetsRepliesCursorResponse

Returns a new instance of GetAllTweetsRepliesCursorResponse.



55
56
57
58
59
60
61
# File 'lib/xapi_scraper/models/components/getalltweetsrepliescursorresponse.rb', line 55

def initialize(data:, has_next_page:, code: 200, msg: "success", next_cursor: nil)
  @data = data
  @has_next_page = has_next_page
  @code = code
  @msg = msg
  @next_cursor = next_cursor
end

Instance Method Details

#==(other) ⇒ Object



64
65
66
67
68
69
70
71
72
# File 'lib/xapi_scraper/models/components/getalltweetsrepliescursorresponse.rb', line 64

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @data == other.data
  return false unless @has_next_page == other.has_next_page
  return false unless @code == other.code
  return false unless @msg == other.msg
  return false unless @next_cursor == other.next_cursor
  true
end