Class: Telnyx::Models::Whatsapp::PhoneNumbers::ConversationalComponentListResponse::Data::Command

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/telnyx/models/whatsapp/phone_numbers/conversational_component_list_response.rb,
sig/telnyx/models/whatsapp/phone_numbers/conversational_component_list_response.rbs

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(command: nil, description: nil) ⇒ Command

Returns a new instance of Command.

Parameters:

  • command (String) (defaults to: nil)
  • description (String) (defaults to: nil)
  • command: (String) (defaults to: nil)
  • description: (String) (defaults to: nil)


52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/telnyx/models/whatsapp/phone_numbers/conversational_component_list_response.rb', line 52

class Command < Telnyx::Internal::Type::BaseModel
  # @!attribute command
  #
  #   @return [String, nil]
  optional :command, String

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

  # @!method initialize(command: nil, description: nil)
  #   @param command [String]
  #   @param description [String]
end

Instance Attribute Details

#commandString?

Parameters:

  • (String)

Returns:

  • (String, nil)


56
# File 'lib/telnyx/models/whatsapp/phone_numbers/conversational_component_list_response.rb', line 56

optional :command, String

#descriptionString?

Parameters:

  • (String)

Returns:

  • (String, nil)


61
# File 'lib/telnyx/models/whatsapp/phone_numbers/conversational_component_list_response.rb', line 61

optional :description, String

Instance Method Details

#to_hash{ command: String, description: String }

Returns:

  • ({ command: String, description: String })


79
# File 'sig/telnyx/models/whatsapp/phone_numbers/conversational_component_list_response.rbs', line 79

def to_hash: -> { command: String, description: String }