Class: Google::Apis::CustomsearchV1::Promotion::BodyLine
- Inherits:
-
Object
- Object
- Google::Apis::CustomsearchV1::Promotion::BodyLine
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/customsearch_v1/classes.rb,
lib/google/apis/customsearch_v1/representations.rb,
lib/google/apis/customsearch_v1/representations.rb
Overview
Block object belonging to a promotion.
Instance Attribute Summary collapse
-
#html_title ⇒ String
The block object's text in HTML, if it has text.
-
#link ⇒ String
The anchor text of the block object's link, if it has a link.
-
#title ⇒ String
The block object's text, if it has text.
-
#url ⇒ String
The URL of the block object's link, if it has one.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BodyLine
constructor
A new instance of BodyLine.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BodyLine
Returns a new instance of BodyLine.
97 98 99 |
# File 'lib/google/apis/customsearch_v1/classes.rb', line 97 def initialize(**args) update!(**args) end |
Instance Attribute Details
#html_title ⇒ String
The block object's text in HTML, if it has text.
Corresponds to the JSON property htmlTitle
80 81 82 |
# File 'lib/google/apis/customsearch_v1/classes.rb', line 80 def html_title @html_title end |
#link ⇒ String
The anchor text of the block object's link, if it has a link.
Corresponds to the JSON property link
85 86 87 |
# File 'lib/google/apis/customsearch_v1/classes.rb', line 85 def link @link end |
#title ⇒ String
The block object's text, if it has text.
Corresponds to the JSON property title
90 91 92 |
# File 'lib/google/apis/customsearch_v1/classes.rb', line 90 def title @title end |
#url ⇒ String
The URL of the block object's link, if it has one.
Corresponds to the JSON property url
95 96 97 |
# File 'lib/google/apis/customsearch_v1/classes.rb', line 95 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
102 103 104 105 106 107 |
# File 'lib/google/apis/customsearch_v1/classes.rb', line 102 def update!(**args) @html_title = args[:html_title] if args.key?(:html_title) @link = args[:link] if args.key?(:link) @title = args[:title] if args.key?(:title) @url = args[:url] if args.key?(:url) end |