Class: Trycourier::Models::MessageContentResponse::Result::Content::Block
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Trycourier::Models::MessageContentResponse::Result::Content::Block
- Defined in:
- lib/trycourier/models/message_content_response.rb
Instance Attribute Summary collapse
-
#text ⇒ String
The block text of the rendered message block.
-
#type ⇒ String
The block type of the rendered message block.
Instance Method Summary collapse
- #initialize(text: , type: ) ⇒ Object constructor
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
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
#text ⇒ String
The block text of the rendered message block.
102 |
# File 'lib/trycourier/models/message_content_response.rb', line 102 required :text, String |
#type ⇒ String
The block type of the rendered message block.
108 |
# File 'lib/trycourier/models/message_content_response.rb', line 108 required :type, String |