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



512
513
514
# File 'generated/google/apis/customsearch_v1/classes.rb', line 512

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

Instance Attribute Details

#cache_idString

Corresponds to the JSON property cacheId

Returns:

  • (String)


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

def cache_id
  @cache_id
end

Corresponds to the JSON property displayLink

Returns:

  • (String)


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

def display_link
  @display_link
end

#file_formatString

Corresponds to the JSON property fileFormat

Returns:

  • (String)


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

def file_format
  @file_format
end

#formatted_urlString

Corresponds to the JSON property formattedUrl

Returns:

  • (String)


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

def formatted_url
  @formatted_url
end

#html_formatted_urlString

Corresponds to the JSON property htmlFormattedUrl

Returns:

  • (String)


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

def html_formatted_url
  @html_formatted_url
end

#html_snippetString

Corresponds to the JSON property htmlSnippet

Returns:

  • (String)


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

def html_snippet
  @html_snippet
end

#html_titleString

Corresponds to the JSON property htmlTitle

Returns:

  • (String)


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

def html_title
  @html_title
end

#imageGoogle::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

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


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

def kind
  @kind
end

#labelsArray<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

Corresponds to the JSON property link

Returns:

  • (String)


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

def link
  @link
end

#mimeString

Corresponds to the JSON property mime

Returns:

  • (String)


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

def mime
  @mime
end

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

Corresponds to the JSON property pagemap

Returns:

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


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

def pagemap
  @pagemap
end

#snippetString

Corresponds to the JSON property snippet

Returns:

  • (String)


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

def snippet
  @snippet
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


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