Class: Trycourier::Models::MessageContentResponse::Result::Content::Block

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/trycourier/models/message_content_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(text: , type: ) ⇒ Object

Parameters:

  • text (String) (defaults to: )

    The block text of the rendered message block.

  • type (String) (defaults to: )

    The block type of the rendered message block.



97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# File 'lib/trycourier/models/message_content_response.rb', line 97

class Block < Trycourier::Internal::Type::BaseModel
  # @!attribute text
  #   The block text of the rendered message block.
  #
  #   @return [String]
  required :text, String

  # @!attribute type
  #   The block type of the rendered message block.
  #
  #   @return [String]
  required :type, String

  # @!method initialize(text:, type:)
  #   @param text [String] The block text of the rendered message block.
  #
  #   @param type [String] The block type of the rendered message block.
end

Instance Attribute Details

#textString

The block text of the rendered message block.

Returns:

  • (String)


102
# File 'lib/trycourier/models/message_content_response.rb', line 102

required :text, String

#typeString

The block type of the rendered message block.

Returns:

  • (String)


108
# File 'lib/trycourier/models/message_content_response.rb', line 108

required :type, String