Class: Amocrm::Models::EntityLinkListByEntityResponse::EntityLinksResponse::Embedded::Link
- Inherits:
-
Internal::Type::BaseModel
show all
- Defined in:
- lib/amocrm/models/entity_link_list_by_entity_response.rb,
sig/amocrm/models/entity_link_list_by_entity_response.rbs
Defined Under Namespace
Modules: EntityType, ToEntityType
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(entity_id: nil, entity_type: nil, metadata: nil, to_entity_id: nil, to_entity_type: nil) ⇒ Object
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
# File 'lib/amocrm/models/entity_link_list_by_entity_response.rb', line 39
class Link < Amocrm::Internal::Type::BaseModel
optional :entity_id, Integer
optional :entity_type,
union: -> { Amocrm::Models::EntityLinkListByEntityResponse::EntityLinksResponse::Embedded::Link::EntityType }
optional :metadata, Amocrm::Internal::Type::Unknown
optional :to_entity_id, Integer
optional :to_entity_type,
union: -> { Amocrm::Models::EntityLinkListByEntityResponse::EntityLinksResponse::Embedded::Link::ToEntityType }
module EntityType
extend Amocrm::Internal::Type::Union
variant const: -> { Amocrm::Models::EntityLinkListByEntityResponse::EntityLinksResponse::Embedded::Link::EntityType::LEADS }
variant const: -> { Amocrm::Models::EntityLinkListByEntityResponse::EntityLinksResponse::Embedded::Link::EntityType::CONTACTS }
variant const: -> { Amocrm::Models::EntityLinkListByEntityResponse::EntityLinksResponse::Embedded::Link::EntityType::COMPANIES }
variant const: -> { Amocrm::Models::EntityLinkListByEntityResponse::EntityLinksResponse::Embedded::Link::EntityType::CUSTOMERS }
variant String
define_sorbet_constant!(:Variants) do
T.type_alias do
T.any(
Amocrm::Models::EntityLinkListByEntityResponse::EntityLinksResponse::Embedded::Link::EntityType::TaggedSymbol,
String
)
end
end
LEADS = :leads
CONTACTS = :contacts
COMPANIES = :companies
CUSTOMERS = :customers
end
module ToEntityType
extend Amocrm::Internal::Type::Union
variant const: -> { Amocrm::Models::EntityLinkListByEntityResponse::EntityLinksResponse::Embedded::Link::ToEntityType::LEADS }
variant const: -> { Amocrm::Models::EntityLinkListByEntityResponse::EntityLinksResponse::Embedded::Link::ToEntityType::CONTACTS }
variant const: -> { Amocrm::Models::EntityLinkListByEntityResponse::EntityLinksResponse::Embedded::Link::ToEntityType::COMPANIES }
variant const: -> { Amocrm::Models::EntityLinkListByEntityResponse::EntityLinksResponse::Embedded::Link::ToEntityType::CUSTOMERS }
variant String
define_sorbet_constant!(:Variants) do
T.type_alias do
T.any(
Amocrm::Models::EntityLinkListByEntityResponse::EntityLinksResponse::Embedded::Link::ToEntityType::TaggedSymbol,
String
)
end
end
LEADS = :leads
CONTACTS = :contacts
COMPANIES = :companies
CUSTOMERS = :customers
end
end
|
Instance Attribute Details
#entity_id ⇒ Integer?
43
|
# File 'lib/amocrm/models/entity_link_list_by_entity_response.rb', line 43
optional :entity_id, Integer
|
#entity_type ⇒ Symbol, ...
48
49
|
# File 'lib/amocrm/models/entity_link_list_by_entity_response.rb', line 48
optional :entity_type,
union: -> { Amocrm::Models::EntityLinkListByEntityResponse::EntityLinksResponse::Embedded::Link::EntityType }
|
54
|
# File 'lib/amocrm/models/entity_link_list_by_entity_response.rb', line 54
optional :metadata, Amocrm::Internal::Type::Unknown
|
#to_entity_id ⇒ Integer?
59
|
# File 'lib/amocrm/models/entity_link_list_by_entity_response.rb', line 59
optional :to_entity_id, Integer
|
#to_entity_type ⇒ Symbol, ...
64
65
|
# File 'lib/amocrm/models/entity_link_list_by_entity_response.rb', line 64
optional :to_entity_type,
union: -> { Amocrm::Models::EntityLinkListByEntityResponse::EntityLinksResponse::Embedded::Link::ToEntityType }
|
Instance Method Details
#to_hash ⇒ {
99
|
# File 'sig/amocrm/models/entity_link_list_by_entity_response.rbs', line 99
def to_hash: -> {
|