Class: XapiScraper::Models::Components::SearchResponse
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::SearchResponse
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/searchresponse.rb
Overview
Search API response
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(data:, code: 200, msg: "success") ⇒ SearchResponse
constructor
A new instance of SearchResponse.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(data:, code: 200, msg: "success") ⇒ SearchResponse
Returns a new instance of SearchResponse.
37 38 39 40 41 |
# File 'lib/xapi_scraper/models/components/searchresponse.rb', line 37 def initialize(data:, code: 200, msg: "success") @data = data @code = code @msg = msg end |
Instance Method Details
#==(other) ⇒ Object
44 45 46 47 48 49 50 |
# File 'lib/xapi_scraper/models/components/searchresponse.rb', line 44 def ==(other) return false unless other.is_a?(self.class) return false unless @data == other.data return false unless @code == other.code return false unless @msg == other.msg true end |