Class: Kombo::Models::Shared::Feature

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/kombo/models/shared/feature.rb

Instance Method Summary collapse

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