Class: Amocrm::Models::CustomerUpdateByIDParams::Embedded
Defined Under Namespace
Classes: Segment, Tag
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id: nil, _links: nil) ⇒ Object
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
# File 'lib/amocrm/models/customer_update_by_id_params.rb', line 99
class Embedded < Amocrm::Internal::Type::BaseModel
optional :segments,
-> { Amocrm::Internal::Type::ArrayOf[Amocrm::CustomerUpdateByIDParams::Embedded::Segment] },
nil?: true
optional :tags,
-> { Amocrm::Internal::Type::ArrayOf[Amocrm::CustomerUpdateByIDParams::Embedded::Tag] },
nil?: true
class Segment < Amocrm::Internal::Type::BaseModel
optional :id, Integer
optional :_links, Amocrm::Internal::Type::Unknown
end
class Tag < Amocrm::Internal::Type::BaseModel
optional :id, Integer
optional :color, String
optional :name, String
end
end
|
Instance Attribute Details
103
104
105
|
# File 'lib/amocrm/models/customer_update_by_id_params.rb', line 103
optional :segments,
-> { Amocrm::Internal::Type::ArrayOf[Amocrm::CustomerUpdateByIDParams::Embedded::Segment] },
nil?: true
|
110
111
112
|
# File 'lib/amocrm/models/customer_update_by_id_params.rb', line 110
optional :tags,
-> { Amocrm::Internal::Type::ArrayOf[Amocrm::CustomerUpdateByIDParams::Embedded::Tag] },
nil?: true
|
Instance Method Details
#to_hash ⇒ {
140
|
# File 'sig/amocrm/models/customer_update_by_id_params.rbs', line 140
def to_hash: -> {
|