Class: FinchAPI::Models::HRIS::Individual::PhoneNumber
- Defined in:
- lib/finch-api/models/hris/individual.rb
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(data: nil, type: nil) ⇒ PhoneNumber
constructor
A new instance of PhoneNumber.
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(data: nil, type: nil) ⇒ PhoneNumber
Returns a new instance of PhoneNumber.
4 |
# File 'lib/finch-api/models/hris/individual.rb', line 4 def initialize(data: nil, type: nil, **) = super |
Instance Attribute Details
#data ⇒ String?
205 |
# File 'lib/finch-api/models/hris/individual.rb', line 205 optional :data, String, nil?: true |
#type ⇒ Symbol, ...
210 |
# File 'lib/finch-api/models/hris/individual.rb', line 210 optional :type, enum: -> { FinchAPI::Models::HRIS::Individual::PhoneNumber::Type }, nil?: true |