Class: XapiScraper::Models::Components::GetCommunityResponse
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::GetCommunityResponse
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/getcommunityresponse.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(code:, msg:, data: nil) ⇒ GetCommunityResponse
constructor
A new instance of GetCommunityResponse.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(code:, msg:, data: nil) ⇒ GetCommunityResponse
Returns a new instance of GetCommunityResponse.
30 31 32 33 34 |
# File 'lib/xapi_scraper/models/components/getcommunityresponse.rb', line 30 def initialize(code:, msg:, data: nil) @code = code @msg = msg @data = data end |
Instance Method Details
#==(other) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/xapi_scraper/models/components/getcommunityresponse.rb', line 37 def ==(other) return false unless other.is_a?(self.class) return false unless @code == other.code return false unless @msg == other.msg return false unless @data == other.data true end |