class Google::Apis::CustomsearchV1::Promotion
Promotion
result.
Attributes
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>]
An abridged version of this search's result URL, e.g. www.example.com. Corresponds to the JSON property `displayLink` @return [String]
The title of the promotion, in HTML. Corresponds to the JSON property `htmlTitle` @return [String]
Image
belonging to a promotion. Corresponds to the JSON property `image` @return [Google::Apis::CustomsearchV1::Promotion::Image]
The URL of the promotion. Corresponds to the JSON property `link` @return [String]
The title of the promotion. Corresponds to the JSON property `title` @return [String]
Public Class Methods
# File lib/google/apis/customsearch_v1/classes.rb, line 61 def initialize(**args) update!(**args) end
Public Instance Methods
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