Class: Google::Apis::CustomsearchV1::Result

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Classes: Image, Label

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Result

Returns a new instance of Result



506
507
508
# File 'generated/google/apis/customsearch_v1/classes.rb', line 506

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cache_idString

Corresponds to the JSON property cacheId

Returns:

  • (String)


434
435
436
# File 'generated/google/apis/customsearch_v1/classes.rb', line 434

def cache_id
  @cache_id
end

Corresponds to the JSON property displayLink

Returns:

  • (String)


439
440
441
# File 'generated/google/apis/customsearch_v1/classes.rb', line 439

def display_link
  @display_link
end

#file_formatString

Corresponds to the JSON property fileFormat

Returns:

  • (String)


444
445
446
# File 'generated/google/apis/customsearch_v1/classes.rb', line 444

def file_format
  @file_format
end

#formatted_urlString

Corresponds to the JSON property formattedUrl

Returns:

  • (String)


449
450
451
# File 'generated/google/apis/customsearch_v1/classes.rb', line 449

def formatted_url
  @formatted_url
end

#html_formatted_urlString

Corresponds to the JSON property htmlFormattedUrl

Returns:

  • (String)


454
455
456
# File 'generated/google/apis/customsearch_v1/classes.rb', line 454

def html_formatted_url
  @html_formatted_url
end

#html_snippetString

Corresponds to the JSON property htmlSnippet

Returns:

  • (String)


459
460
461
# File 'generated/google/apis/customsearch_v1/classes.rb', line 459

def html_snippet
  @html_snippet
end

#html_titleString

Corresponds to the JSON property htmlTitle

Returns:

  • (String)


464
465
466
# File 'generated/google/apis/customsearch_v1/classes.rb', line 464

def html_title
  @html_title
end

#imageGoogle::Apis::CustomsearchV1::Result::Image

Corresponds to the JSON property image



469
470
471
# File 'generated/google/apis/customsearch_v1/classes.rb', line 469

def image
  @image
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


474
475
476
# File 'generated/google/apis/customsearch_v1/classes.rb', line 474

def kind
  @kind
end

#labelsArray<Google::Apis::CustomsearchV1::Result::Label>

Corresponds to the JSON property labels



479
480
481
# File 'generated/google/apis/customsearch_v1/classes.rb', line 479

def labels
  @labels
end

Corresponds to the JSON property link

Returns:

  • (String)


484
485
486
# File 'generated/google/apis/customsearch_v1/classes.rb', line 484

def link
  @link
end

#mimeString

Corresponds to the JSON property mime

Returns:

  • (String)


489
490
491
# File 'generated/google/apis/customsearch_v1/classes.rb', line 489

def mime
  @mime
end

#pagemapHash<String,Array<Hash<String,Object>>>

Corresponds to the JSON property pagemap

Returns:

  • (Hash<String,Array<Hash<String,Object>>>)


494
495
496
# File 'generated/google/apis/customsearch_v1/classes.rb', line 494

def pagemap
  @pagemap
end

#snippetString

Corresponds to the JSON property snippet

Returns:

  • (String)


499
500
501
# File 'generated/google/apis/customsearch_v1/classes.rb', line 499

def snippet
  @snippet
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


504
505
506
# File 'generated/google/apis/customsearch_v1/classes.rb', line 504

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
# File 'generated/google/apis/customsearch_v1/classes.rb', line 511

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