Class: FinchAPI::Models::Sandbox::EmploymentUpdateParams::CustomField
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- FinchAPI::Models::Sandbox::EmploymentUpdateParams::CustomField
- Defined in:
- lib/finch_api/models/sandbox/employment_update_params.rb,
sig/finch_api/models/sandbox/employment_update_params.rbs
Defined Under Namespace
Modules: Value
Instance Attribute Summary collapse
Instance Method Summary collapse
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(name: nil, value: nil) ⇒ Object
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 |
# File 'lib/finch_api/models/sandbox/employment_update_params.rb', line 220 class CustomField < FinchAPI::Internal::Type::BaseModel # @!attribute name # # @return [String, nil] optional :name, String, nil?: true # @!attribute value # # @return [String, Array<Object>, Object, Float, Boolean, nil] optional :value, union: -> { FinchAPI::Sandbox::EmploymentUpdateParams::CustomField::Value }, nil?: true # @!method initialize(name: nil, value: nil) # @param name [String, nil] # @param value [String, Array<Object>, Object, Float, Boolean, nil] # @see FinchAPI::Models::Sandbox::EmploymentUpdateParams::CustomField#value module Value extend FinchAPI::Internal::Type::Union variant String variant -> { FinchAPI::Models::Sandbox::EmploymentUpdateParams::CustomField::Value::UnionMember1Array } variant FinchAPI::Internal::Type::Unknown variant Float variant FinchAPI::Internal::Type::Boolean # @!method self.variants # @return [Array(String, Array<Object>, Object, Float, Boolean)] # @type [FinchAPI::Internal::Type::Converter] UnionMember1Array = FinchAPI::Internal::Type::ArrayOf[FinchAPI::Internal::Type::Unknown] end end |
Instance Attribute Details
#name ⇒ String?
224 |
# File 'lib/finch_api/models/sandbox/employment_update_params.rb', line 224 optional :name, String, nil?: true |
#value ⇒ String, ...
229 230 231 232 233 |
# File 'lib/finch_api/models/sandbox/employment_update_params.rb', line 229 optional :value, union: -> { FinchAPI::Sandbox::EmploymentUpdateParams::CustomField::Value }, nil?: true |
Instance Method Details
#to_hash ⇒ {
157 |
# File 'sig/finch_api/models/sandbox/employment_update_params.rbs', line 157
def to_hash: -> {
|