Class: Amocrm::Models::LeadCreateParams::Body::Embedded::Company

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/amocrm/models/lead_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(companies: nil, contacts: nil, metadata: nil, source: nil, tags: nil) ⇒ Object

Embedded entities (lead/contact/company/source)



184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# File 'lib/amocrm/models/lead_create_params.rb', line 184

class Company < Amocrm::Internal::Type::BaseModel
  # @!attribute id
  #
  #   @return [Integer, nil]
  optional :id, Integer

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

  # @!method initialize(id: nil, name: nil)
  #   @param id [Integer]
  #   @param name [String]
end

Instance Attribute Details

#idInteger?

Returns:

  • (Integer, nil)


188
# File 'lib/amocrm/models/lead_create_params.rb', line 188

optional :id, Integer

#nameString?

Returns:

  • (String, nil)


193
# File 'lib/amocrm/models/lead_create_params.rb', line 193

optional :name, String