class Google::Apis::CustomsearchV1::Promotion

Attributes

body_lines[RW]

Corresponds to the JSON property `bodyLines` @return [Array<Google::Apis::CustomsearchV1::Promotion::BodyLine>]

html_title[RW]

Corresponds to the JSON property `htmlTitle` @return [String]

image[RW]

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

title[RW]

Corresponds to the JSON property `title` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/customsearch_v1/classes.rb, line 120
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