Class: Kombo::Models::Shared::Feature
- Inherits:
-
Object
- Object
- Kombo::Models::Shared::Feature
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kombo/models/shared/feature.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id:, label:, coverage_status:) ⇒ Feature
constructor
A new instance of Feature.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id:, label:, coverage_status:) ⇒ Feature
Returns a new instance of Feature.
28 29 30 31 32 |
# File 'lib/kombo/models/shared/feature.rb', line 28 def initialize(id:, label:, coverage_status:) @id = id @label = label @coverage_status = coverage_status end |
Instance Method Details
#==(other) ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/kombo/models/shared/feature.rb', line 35 def ==(other) return false unless other.is_a? self.class return false unless @id == other.id return false unless @label == other.label return false unless @coverage_status == other.coverage_status true end |