Class: Google::Apis::CustomsearchV1::Result
- Inherits:
-
Object
- Object
- Google::Apis::CustomsearchV1::Result
- Defined in:
- generated/google/apis/customsearch_v1/classes.rb,
generated/google/apis/customsearch_v1/representations.rb,
generated/google/apis/customsearch_v1/representations.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#cache_id ⇒ String
Corresponds to the JSON property
cacheId
. -
#display_link ⇒ String
Corresponds to the JSON property
displayLink
. -
#file_format ⇒ String
Corresponds to the JSON property
fileFormat
. -
#formatted_url ⇒ String
Corresponds to the JSON property
formattedUrl
. -
#html_formatted_url ⇒ String
Corresponds to the JSON property
htmlFormattedUrl
. -
#html_snippet ⇒ String
Corresponds to the JSON property
htmlSnippet
. -
#html_title ⇒ String
Corresponds to the JSON property
htmlTitle
. -
#image ⇒ Google::Apis::CustomsearchV1::Result::Image
Corresponds to the JSON property
image
. -
#kind ⇒ String
Corresponds to the JSON property
kind
. -
#labels ⇒ Array<Google::Apis::CustomsearchV1::Result::Label>
Corresponds to the JSON property
labels
. -
#link ⇒ String
Corresponds to the JSON property
link
. -
#mime ⇒ String
Corresponds to the JSON property
mime
. -
#pagemap ⇒ Hash<String,Array<Hash<String,Object>>>
Corresponds to the JSON property
pagemap
. -
#snippet ⇒ String
Corresponds to the JSON property
snippet
. -
#title ⇒ String
Corresponds to the JSON property
title
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Result
constructor
A new instance of Result.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Result
Returns a new instance of Result
512 513 514 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 512 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cache_id ⇒ String
Corresponds to the JSON property cacheId
440 441 442 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 440 def cache_id @cache_id end |
#display_link ⇒ String
Corresponds to the JSON property displayLink
445 446 447 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 445 def display_link @display_link end |
#file_format ⇒ String
Corresponds to the JSON property fileFormat
450 451 452 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 450 def file_format @file_format end |
#formatted_url ⇒ String
Corresponds to the JSON property formattedUrl
455 456 457 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 455 def formatted_url @formatted_url end |
#html_formatted_url ⇒ String
Corresponds to the JSON property htmlFormattedUrl
460 461 462 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 460 def html_formatted_url @html_formatted_url end |
#html_snippet ⇒ String
Corresponds to the JSON property htmlSnippet
465 466 467 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 465 def html_snippet @html_snippet end |
#html_title ⇒ String
Corresponds to the JSON property htmlTitle
470 471 472 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 470 def html_title @html_title end |
#image ⇒ Google::Apis::CustomsearchV1::Result::Image
Corresponds to the JSON property image
475 476 477 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 475 def image @image end |
#kind ⇒ String
Corresponds to the JSON property kind
480 481 482 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 480 def kind @kind end |
#labels ⇒ Array<Google::Apis::CustomsearchV1::Result::Label>
Corresponds to the JSON property labels
485 486 487 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 485 def labels @labels end |
#link ⇒ String
Corresponds to the JSON property link
490 491 492 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 490 def link @link end |
#mime ⇒ String
Corresponds to the JSON property mime
495 496 497 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 495 def mime @mime end |
#pagemap ⇒ Hash<String,Array<Hash<String,Object>>>
Corresponds to the JSON property pagemap
500 501 502 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 500 def pagemap @pagemap end |
#snippet ⇒ String
Corresponds to the JSON property snippet
505 506 507 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 505 def snippet @snippet end |
#title ⇒ String
Corresponds to the JSON property title
510 511 512 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 510 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 517 def update!(**args) @cache_id = args[:cache_id] if args.key?(:cache_id) @display_link = args[:display_link] if args.key?(:display_link) @file_format = args[:file_format] if args.key?(:file_format) @formatted_url = args[:formatted_url] if args.key?(:formatted_url) @html_formatted_url = args[:html_formatted_url] if args.key?(:html_formatted_url) @html_snippet = args[:html_snippet] if args.key?(:html_snippet) @html_title = args[:html_title] if args.key?(:html_title) @image = args[:image] if args.key?(:image) @kind = args[:kind] if args.key?(:kind) @labels = args[:labels] if args.key?(:labels) @link = args[:link] if args.key?(:link) @mime = args[:mime] if args.key?(:mime) @pagemap = args[:pagemap] if args.key?(:pagemap) @snippet = args[:snippet] if args.key?(:snippet) @title = args[:title] if args.key?(:title) end |