Class: Telnyx::Models::RcsCardContent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/rcs_card_content.rb

Defined Under Namespace

Classes: Media

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(description: nil, media: nil, suggestions: nil, title: nil) ⇒ Object

Parameters:

  • description (String) (defaults to: nil)

    Description of the card (at most 2000 characters)

  • media (Telnyx::Models::RcsCardContent::Media) (defaults to: nil)

    A media file within a rich card.

  • suggestions (Array<Telnyx::Models::RcsSuggestion>) (defaults to: nil)

    List of suggestions to include in the card. Maximum 10 suggestions.

  • title (String) (defaults to: nil)

    Title of the card (at most 200 characters)



# File 'lib/telnyx/models/rcs_card_content.rb', line 30

Instance Attribute Details

#descriptionString?

Description of the card (at most 2000 characters)

Returns:

  • (String, nil)


10
# File 'lib/telnyx/models/rcs_card_content.rb', line 10

optional :description, String

#mediaTelnyx::Models::RcsCardContent::Media?

A media file within a rich card.



16
# File 'lib/telnyx/models/rcs_card_content.rb', line 16

optional :media, -> { Telnyx::RcsCardContent::Media }

#suggestionsArray<Telnyx::Models::RcsSuggestion>?

List of suggestions to include in the card. Maximum 10 suggestions.

Returns:



22
# File 'lib/telnyx/models/rcs_card_content.rb', line 22

optional :suggestions, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::RcsSuggestion] }

#titleString?

Title of the card (at most 200 characters)

Returns:

  • (String, nil)


28
# File 'lib/telnyx/models/rcs_card_content.rb', line 28

optional :title, String