Class: Telnyx::Models::WebSearchContentsResponse::Data::Result::Metadata

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/web_search_contents_response.rb,
sig/telnyx/models/web_search_contents_response.rbs

Overview

See Also:

  • Telnyx::Models::WebSearchContentsResponse::Data::Result#metadata

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(favicon_url: nil, site_name: nil) ⇒ Metadata

Page metadata (if metadata format requested).

Parameters:

  • favicon_url (String) (defaults to: nil)

    Favicon URL (if available).

  • site_name (String) (defaults to: nil)

    Site name. Often empty.

  • favicon_url: (String) (defaults to: nil)
  • site_name: (String) (defaults to: nil)


# File 'lib/telnyx/models/web_search_contents_response.rb', line 86

Instance Attribute Details

#favicon_urlString?

Favicon URL (if available).

Parameters:

  • (String)

Returns:

  • (String, nil)


78
# File 'lib/telnyx/models/web_search_contents_response.rb', line 78

optional :favicon_url, String

#site_nameString?

Site name. Often empty.

Parameters:

  • (String)

Returns:

  • (String, nil)


84
# File 'lib/telnyx/models/web_search_contents_response.rb', line 84

optional :site_name, String

Instance Method Details

#to_hash{ favicon_url: String, site_name: String }

Returns:

  • ({ favicon_url: String, site_name: String })


98
# File 'sig/telnyx/models/web_search_contents_response.rbs', line 98

def to_hash: -> { favicon_url: String, site_name: String }