Class: GustoEmbedded::Models::Operations::Occupations
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Operations::Occupations
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/operations/occupations.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(code:, experience_level:, time_percentage:, primary: nil) ⇒ Occupations
constructor
A new instance of Occupations.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(code:, experience_level:, time_percentage:, primary: nil) ⇒ Occupations
Returns a new instance of Occupations.
25 26 27 28 29 30 |
# File 'lib/gusto_embedded/models/operations/occupations.rb', line 25 def initialize(code:, experience_level:, time_percentage:, primary: nil) @code = code @experience_level = experience_level @time_percentage = time_percentage @primary = primary end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/gusto_embedded/models/operations/occupations.rb', line 33 def ==(other) return false unless other.is_a? self.class return false unless @code == other.code return false unless @experience_level == other.experience_level return false unless @time_percentage == other.time_percentage return false unless @primary == other.primary true end |