Class: Amocrm::Models::CustomerSegmentGetByIDResponse::CustomerSegment::CustomFieldsValue::Value
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Amocrm::Models::CustomerSegmentGetByIDResponse::CustomerSegment::CustomFieldsValue::Value
- Defined in:
- lib/amocrm/models/customer_segment_get_by_id_response.rb
Defined Under Namespace
Modules: Value
Instance Attribute Summary collapse
-
#enum_code ⇒ String?
Option code for list/select custom fields (if you use code instead of id).
-
#enum_id ⇒ Integer?
Option id for list/select custom fields (one of predefined options).
- #value ⇒ String, ...
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
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/amocrm/models/customer_segment_get_by_id_response.rb', line 87 class Value < Amocrm::Internal::Type::BaseModel # @!attribute value # # @return [String, Integer, Boolean] required :value, union: -> { Amocrm::Models::CustomerSegmentGetByIDResponse::CustomerSegment::CustomFieldsValue::Value::Value } # @!attribute enum_code # Option code for list/select custom fields (if you use code instead of id) # # @return [String, nil] optional :enum_code, String # @!attribute enum_id # Option id for list/select custom fields (one of predefined options) # # @return [Integer, nil] optional :enum_id, Integer # @!method initialize(value:, enum_code: nil, enum_id: nil) # @param value [String, Integer, Boolean] # # @param enum_code [String] Option code for list/select custom fields (if you use code instead of id) # # @param enum_id [Integer] Option id for list/select custom fields (one of predefined options) # @see Amocrm::Models::CustomerSegmentGetByIDResponse::CustomerSegment::CustomFieldsValue::Value#value module Value extend Amocrm::Internal::Type::Union variant String variant Integer variant Amocrm::Internal::Type::Boolean # @!method self.variants # @return [Array(String, Integer, Boolean)] end end |
Instance Attribute Details
#enum_code ⇒ String?
Option code for list/select custom fields (if you use code instead of id)
98 |
# File 'lib/amocrm/models/customer_segment_get_by_id_response.rb', line 98 optional :enum_code, String |
#enum_id ⇒ Integer?
Option id for list/select custom fields (one of predefined options)
104 |
# File 'lib/amocrm/models/customer_segment_get_by_id_response.rb', line 104 optional :enum_id, Integer |
#value ⇒ String, ...
91 92 |
# File 'lib/amocrm/models/customer_segment_get_by_id_response.rb', line 91 required :value, union: -> { Amocrm::Models::CustomerSegmentGetByIDResponse::CustomerSegment::CustomFieldsValue::Value::Value } |