Class: XapiScraper::Models::Components::AdvancedSearchCursorResponse
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::AdvancedSearchCursorResponse
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/advancedsearchcursorresponse.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(data:, has_next_page:, code: 200, msg: "success", next_cursor: nil) ⇒ AdvancedSearchCursorResponse
constructor
A new instance of AdvancedSearchCursorResponse.
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) ⇒ AdvancedSearchCursorResponse
Returns a new instance of AdvancedSearchCursorResponse.
55 56 57 58 59 60 61 |
# File 'lib/xapi_scraper/models/components/advancedsearchcursorresponse.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/advancedsearchcursorresponse.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 |