Class: Sentdm::Models::MessageRetrieveStatusResponse::Data::MessageBody::Button

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/sentdm/models/message_retrieve_status_response.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(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)


232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
# File 'lib/sentdm/models/message_retrieve_status_response.rb', line 232

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?

Returns:

  • (String, nil)


236
# File 'lib/sentdm/models/message_retrieve_status_response.rb', line 236

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

#textString?

Returns:

  • (String, nil)


241
# File 'lib/sentdm/models/message_retrieve_status_response.rb', line 241

optional :text, String, nil?: true

#typeString?

Returns:

  • (String, nil)


246
# File 'lib/sentdm/models/message_retrieve_status_response.rb', line 246

optional :type, String

#valueString?

Returns:

  • (String, nil)


251
# File 'lib/sentdm/models/message_retrieve_status_response.rb', line 251

optional :value, String