Class: Amocrm::Models::CatalogElementCreateParams::Body::CustomFieldsValue::Value

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/amocrm/models/catalog_element_create_params.rb

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(value:, enum_code: nil, enum_id: nil) ⇒ Object

Parameters:

  • value (Object)
  • enum_code (String) (defaults to: nil)
  • enum_id (Integer) (defaults to: nil)


81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'lib/amocrm/models/catalog_element_create_params.rb', line 81

class Value < Amocrm::Internal::Type::BaseModel
  # @!attribute value
  #
  #   @return [Object]
  required :value, Amocrm::Internal::Type::Unknown

  # @!attribute enum_code
  #
  #   @return [String, nil]
  optional :enum_code, String

  # @!attribute enum_id
  #
  #   @return [Integer, nil]
  optional :enum_id, Integer

  # @!method initialize(value:, enum_code: nil, enum_id: nil)
  #   @param value [Object]
  #   @param enum_code [String]
  #   @param enum_id [Integer]
end

Instance Attribute Details

#enum_codeString?

Returns:

  • (String, nil)


90
# File 'lib/amocrm/models/catalog_element_create_params.rb', line 90

optional :enum_code, String

#enum_idInteger?

Returns:

  • (Integer, nil)


95
# File 'lib/amocrm/models/catalog_element_create_params.rb', line 95

optional :enum_id, Integer

#valueObject

Returns:

  • (Object)


85
# File 'lib/amocrm/models/catalog_element_create_params.rb', line 85

required :value, Amocrm::Internal::Type::Unknown