Class: XapiScraper::Models::Components::UserTimelinePageResponse
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::UserTimelinePageResponse
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/usertimelinepageresponse.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(data:, has_next_page:, requested_count:, effective_count:, parsed_count:, code: 200, msg: "success", next_cursor: nil) ⇒ UserTimelinePageResponse
constructor
A new instance of UserTimelinePageResponse.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(data:, has_next_page:, requested_count:, effective_count:, parsed_count:, code: 200, msg: "success", next_cursor: nil) ⇒ UserTimelinePageResponse
Returns a new instance of UserTimelinePageResponse.
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/usertimelinepageresponse.rb', line 76 def initialize( data:, has_next_page:, requested_count:, effective_count:, parsed_count:, code: 200, msg: "success", next_cursor: nil ) @data = data @has_next_page = has_next_page @requested_count = requested_count @effective_count = effective_count @parsed_count = parsed_count @code = code @msg = msg @next_cursor = next_cursor end |
Instance Method Details
#==(other) ⇒ Object
97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/xapi_scraper/models/components/usertimelinepageresponse.rb', line 97 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 @requested_count == other.requested_count return false unless @effective_count == other.effective_count return false unless @parsed_count == other.parsed_count return false unless @code == other.code return false unless @msg == other.msg return false unless @next_cursor == other.next_cursor true end |