class Google::Apis::CustomsearchV1::Promotion

Promotion result.

Attributes

body_lines[RW]

An array of block objects for this promotion. See [Google WebSearch Protocol reference](developers.google.com/custom-search/docs/xml_results) for more information. Corresponds to the JSON property `bodyLines` @return [Array<Google::Apis::CustomsearchV1::Promotion::BodyLine>]

html_title[RW]

The title of the promotion, in HTML. Corresponds to the JSON property `htmlTitle` @return [String]

image[RW]

Image belonging to a promotion. Corresponds to the JSON property `image` @return [Google::Apis::CustomsearchV1::Promotion::Image]

title[RW]

The title of the promotion. Corresponds to the JSON property `title` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/customsearch_v1/classes.rb, line 61
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/customsearch_v1/classes.rb, line 66
def update!(**args)
  @body_lines = args[:body_lines] if args.key?(:body_lines)
  @display_link = args[:display_link] if args.key?(:display_link)
  @html_title = args[:html_title] if args.key?(:html_title)
  @image = args[:image] if args.key?(:image)
  @link = args[:link] if args.key?(:link)
  @title = args[:title] if args.key?(:title)
end