Class: Telnyx::Models::WebSearchResult
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::WebSearchResult
- Defined in:
- lib/telnyx/models/web_search_result.rb,
sig/telnyx/models/web_search_result.rbs
Instance Attribute Summary collapse
-
#description ⇒ String
Short description or excerpt.
-
#favicon_url ⇒ String?
Favicon URL (if available).
-
#snippets ⇒ Array<String>
Relevant text snippets from the page.
-
#thumbnail_url ⇒ String?
Thumbnail image URL (if available).
-
#title ⇒ String
Result title.
-
#url ⇒ String
Result URL.
Instance Method Summary collapse
- #initialize(description:, snippets:, title:, url:, favicon_url: nil, thumbnail_url: nil) ⇒ Object constructor
- #to_hash ⇒ {
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:, snippets:, title:, url:, favicon_url: nil, thumbnail_url: nil) ⇒ Object
|
|
# File 'lib/telnyx/models/web_search_result.rb', line 42
|
Instance Attribute Details
#description ⇒ String
Short description or excerpt.
10 |
# File 'lib/telnyx/models/web_search_result.rb', line 10 required :description, String |
#favicon_url ⇒ String?
Favicon URL (if available).
34 |
# File 'lib/telnyx/models/web_search_result.rb', line 34 optional :favicon_url, String |
#snippets ⇒ Array<String>
Relevant text snippets from the page.
16 |
# File 'lib/telnyx/models/web_search_result.rb', line 16 required :snippets, Telnyx::Internal::Type::ArrayOf[String] |
#thumbnail_url ⇒ String?
Thumbnail image URL (if available).
40 |
# File 'lib/telnyx/models/web_search_result.rb', line 40 optional :thumbnail_url, String |
#title ⇒ String
Result title.
22 |
# File 'lib/telnyx/models/web_search_result.rb', line 22 required :title, String |
#url ⇒ String
Result URL.
28 |
# File 'lib/telnyx/models/web_search_result.rb', line 28 required :url, String |
Instance Method Details
#to_hash ⇒ {
39 |
# File 'sig/telnyx/models/web_search_result.rbs', line 39
def to_hash: -> {
|