Class: Google::Apis::CustomsearchV1::Promotion
- Inherits:
-
Object
- Object
- Google::Apis::CustomsearchV1::Promotion
- 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
Overview
Promotion result.
Defined Under Namespace
Instance Attribute Summary collapse
-
#body_lines ⇒ Array<Google::Apis::CustomsearchV1::Promotion::BodyLine>
An array of block objects for this promotion.
-
#display_link ⇒ String
An abridged version of this search's result URL, e.g.
-
#html_title ⇒ String
The title of the promotion, in HTML.
-
#image ⇒ Google::Apis::CustomsearchV1::Promotion::Image
Image belonging to a promotion.
-
#link ⇒ String
The URL of the promotion.
-
#title ⇒ String
The title of the promotion.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Promotion
constructor
A new instance of Promotion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Promotion
Returns a new instance of Promotion.
61 62 63 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 61 def initialize(**args) update!(**args) end |
Instance Attribute Details
#body_lines ⇒ Array<Google::Apis::CustomsearchV1::Promotion::BodyLine>
An array of block objects for this promotion. See Google WebSearch Protocol
reference for
more information.
Corresponds to the JSON property bodyLines
34 35 36 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 34 def body_lines @body_lines end |
#display_link ⇒ String
An abridged version of this search's result URL, e.g. www.example.com.
Corresponds to the JSON property displayLink
39 40 41 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 39 def display_link @display_link end |
#html_title ⇒ String
The title of the promotion, in HTML.
Corresponds to the JSON property htmlTitle
44 45 46 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 44 def html_title @html_title end |
#image ⇒ Google::Apis::CustomsearchV1::Promotion::Image
Image belonging to a promotion.
Corresponds to the JSON property image
49 50 51 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 49 def image @image end |
#link ⇒ String
The URL of the promotion.
Corresponds to the JSON property link
54 55 56 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 54 def link @link end |
#title ⇒ String
The title of the promotion.
Corresponds to the JSON property title
59 60 61 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 59 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
66 67 68 69 70 71 72 73 |
# File 'generated/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 |