Class: XapiScraper::Models::Components::ListModel
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::ListModel
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/listmodel.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id:, name:, description:, is_private:, member_count:, subscriber_count:) ⇒ ListModel
constructor
A new instance of ListModel.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id:, name:, description:, is_private:, member_count:, subscriber_count:) ⇒ ListModel
Returns a new instance of ListModel.
54 55 56 57 58 59 60 61 |
# File 'lib/xapi_scraper/models/components/listmodel.rb', line 54 def initialize(id:, name:, description:, is_private:, member_count:, subscriber_count:) @id = id @name = name @description = description @is_private = is_private @member_count = member_count @subscriber_count = subscriber_count end |
Instance Method Details
#==(other) ⇒ Object
64 65 66 67 68 69 70 71 72 73 |
# File 'lib/xapi_scraper/models/components/listmodel.rb', line 64 def ==(other) return false unless other.is_a?(self.class) return false unless @id == other.id return false unless @name == other.name return false unless @description == other.description return false unless @is_private == other.is_private return false unless @member_count == other.member_count return false unless @subscriber_count == other.subscriber_count true end |