Class: FinchAPI::Models::Sandbox::CompanyUpdateResponse::Department
- Defined in:
- lib/finch-api/models/sandbox/company_update_response.rb
Defined Under Namespace
Classes: Parent
Instance Attribute Summary collapse
-
#name ⇒ String?
The department name.
-
#parent ⇒ FinchAPI::Models::Sandbox::CompanyUpdateResponse::Department::Parent?
The parent department, if present.
Instance Method Summary collapse
-
#initialize(name: nil, parent: nil) ⇒ Department
constructor
A new instance of Department.
Constructor Details
#initialize(name: nil, parent: nil) ⇒ Department
Returns a new instance of Department.
4 |
# File 'lib/finch-api/models/sandbox/company_update_response.rb', line 4 def initialize(name: nil, parent: nil, **) = super |
Instance Attribute Details
#name ⇒ String?
The department name.
137 |
# File 'lib/finch-api/models/sandbox/company_update_response.rb', line 137 optional :name, String, nil?: true |
#parent ⇒ FinchAPI::Models::Sandbox::CompanyUpdateResponse::Department::Parent?
The parent department, if present.
143 |
# File 'lib/finch-api/models/sandbox/company_update_response.rb', line 143 optional :parent, -> { FinchAPI::Models::Sandbox::CompanyUpdateResponse::Department::Parent }, nil?: true |