Class: XapiScraper::Models::Components::GetRepliesPageResponse
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::GetRepliesPageResponse
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/getrepliespageresponse.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(data:, has_next_page:, code: 200, msg: "success", root_tweet: nil, next_cursor: nil) ⇒ GetRepliesPageResponse
constructor
A new instance of GetRepliesPageResponse.
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", root_tweet: nil, next_cursor: nil) ⇒ GetRepliesPageResponse
Returns a new instance of GetRepliesPageResponse.
62 63 64 65 66 67 68 69 |
# File 'lib/xapi_scraper/models/components/getrepliespageresponse.rb', line 62 def initialize(data:, has_next_page:, code: 200, msg: "success", root_tweet: nil, next_cursor: nil) @data = data @has_next_page = has_next_page @code = code @msg = msg @root_tweet = root_tweet @next_cursor = next_cursor end |
Instance Method Details
#==(other) ⇒ Object
72 73 74 75 76 77 78 79 80 81 |
# File 'lib/xapi_scraper/models/components/getrepliespageresponse.rb', line 72 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 @root_tweet == other.root_tweet return false unless @next_cursor == other.next_cursor true end |