Class: XapiScraper::Models::Components::UserTimelineResponse

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(data:, total_fetched_count:, page_count:, code: 200, msg: "success") ⇒ UserTimelineResponse

Returns a new instance of UserTimelineResponse.



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

def initialize(data:, total_fetched_count:, page_count:, code: 200, msg: "success")
  @data = data
  @total_fetched_count = total_fetched_count
  @page_count = page_count
  @code = code
  @msg = msg
end

Instance Method Details

#==(other) ⇒ Object



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

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