Class: Sentdm::Models::ConversationMessagesList::Message::MessageBody::Button

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/sentdm/models/conversation_messages_list.rb,
sig/sentdm/models/conversation_messages_list.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(postback_data: nil, text: nil, type: nil, value: nil) ⇒ Object

Parameters:

  • postback_data (String, nil) (defaults to: nil)
  • text (String, nil) (defaults to: nil)
  • type (String) (defaults to: nil)
  • value (String) (defaults to: nil)


214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
# File 'lib/sentdm/models/conversation_messages_list.rb', line 214

class Button < Sentdm::Internal::Type::BaseModel
  # @!attribute postback_data
  #
  #   @return [String, nil]
  optional :postback_data, String, api_name: :postbackData, nil?: true

  # @!attribute text
  #
  #   @return [String, nil]
  optional :text, String, nil?: true

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

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

  # @!method initialize(postback_data: nil, text: nil, type: nil, value: nil)
  #   @param postback_data [String, nil]
  #   @param text [String, nil]
  #   @param type [String]
  #   @param value [String]
end

Instance Attribute Details

#postback_dataString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


218
# File 'lib/sentdm/models/conversation_messages_list.rb', line 218

optional :postback_data, String, api_name: :postbackData, nil?: true

#textString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


223
# File 'lib/sentdm/models/conversation_messages_list.rb', line 223

optional :text, String, nil?: true

#typeString?

Parameters:

  • (String)

Returns:

  • (String, nil)


228
# File 'lib/sentdm/models/conversation_messages_list.rb', line 228

optional :type, String

#valueString?

Parameters:

  • (String)

Returns:

  • (String, nil)


233
# File 'lib/sentdm/models/conversation_messages_list.rb', line 233

optional :value, String

Instance Method Details

#to_hash{

Returns:

  • ({)


229
# File 'sig/sentdm/models/conversation_messages_list.rbs', line 229

def to_hash: -> {