Class: Kombo::Models::Shared::Skill
- Inherits:
-
Object
- Object
- Kombo::Models::Shared::Skill
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kombo/models/shared/skill.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(skill_id:, skill:, expected_proficiency: nil) ⇒ Skill
constructor
A new instance of Skill.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(skill_id:, skill:, expected_proficiency: nil) ⇒ Skill
Returns a new instance of Skill.
23 24 25 26 27 |
# File 'lib/kombo/models/shared/skill.rb', line 23 def initialize(skill_id:, skill:, expected_proficiency: nil) @skill_id = skill_id @skill = skill @expected_proficiency = expected_proficiency end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/kombo/models/shared/skill.rb', line 30 def ==(other) return false unless other.is_a? self.class return false unless @skill_id == other.skill_id return false unless @skill == other.skill return false unless @expected_proficiency == other.expected_proficiency true end |