Class: StackOne::Models::Shared::ContractType
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::ContractType
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/contract_type.rb
Overview
The employment work schedule type
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(contract_type: nil, id: nil, label: nil, remote_id: nil) ⇒ ContractType
constructor
A new instance of ContractType.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(contract_type: nil, id: nil, label: nil, remote_id: nil) ⇒ ContractType
Returns a new instance of ContractType.
25 26 27 28 29 30 |
# File 'lib/stack_one/models/shared/contract_type.rb', line 25 def initialize(contract_type: nil, id: nil, label: nil, remote_id: nil) @contract_type = contract_type @id = id @label = label @remote_id = remote_id end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/stack_one/models/shared/contract_type.rb', line 33 def ==(other) return false unless other.is_a? self.class return false unless @contract_type == other.contract_type return false unless @id == other.id return false unless @label == other.label return false unless @remote_id == other.remote_id true end |