Class: FinchAPI::Models::HRIS::HRISCompany::Department
- Defined in:
- lib/finch-api/models/hris/company.rb
Defined Under Namespace
Classes: Parent
Instance Attribute Summary collapse
-
#name ⇒ String?
The department name.
-
#parent ⇒ FinchAPI::Models::HRIS::HRISCompany::Department::Parent?
The parent department, if present.
Instance Method Summary collapse
-
#initialize(name: nil, parent: nil) ⇒ Department
constructor
A new instance of Department.
Methods inherited from BaseModel
==, #==, #[], coerce, #deconstruct_keys, dump, fields, #inspect, known_fields, optional, required, #to_h
Methods included from Converter
#coerce, coerce, #dump, dump, type_info
Constructor Details
#initialize(name: nil, parent: nil) ⇒ Department
Returns a new instance of Department.
4 |
# File 'lib/finch-api/models/hris/company.rb', line 4 def initialize(name: nil, parent: nil, **) = super |
Instance Attribute Details
#name ⇒ String?
The department name.
153 |
# File 'lib/finch-api/models/hris/company.rb', line 153 optional :name, String, nil?: true |
#parent ⇒ FinchAPI::Models::HRIS::HRISCompany::Department::Parent?
The parent department, if present.
159 |
# File 'lib/finch-api/models/hris/company.rb', line 159 optional :parent, -> { FinchAPI::Models::HRIS::HRISCompany::Department::Parent }, nil?: true |