Class: Amocrm::Models::CustomerStatusCreateParams::Body

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/amocrm/models/customer_status_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(name:, color: nil, request_id: nil, sort: nil) ⇒ Object

Parameters:

  • name (String)
  • color (String) (defaults to: nil)
  • request_id (String) (defaults to: nil)
  • sort (Integer) (defaults to: nil)


19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/amocrm/models/customer_status_create_params.rb', line 19

class Body < Amocrm::Internal::Type::BaseModel
  # @!attribute name
  #
  #   @return [String]
  required :name, String

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

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

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

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

Instance Attribute Details

#colorString?

Returns:

  • (String, nil)


28
# File 'lib/amocrm/models/customer_status_create_params.rb', line 28

optional :color, String

#nameString

Returns:

  • (String)


23
# File 'lib/amocrm/models/customer_status_create_params.rb', line 23

required :name, String

#request_idString?

Returns:

  • (String, nil)


33
# File 'lib/amocrm/models/customer_status_create_params.rb', line 33

optional :request_id, String

#sortInteger?

Returns:

  • (Integer, nil)


38
# File 'lib/amocrm/models/customer_status_create_params.rb', line 38

optional :sort, Integer