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:
- generated/google/apis/customsearch_v1/classes.rb,
generated/google/apis/customsearch_v1/representations.rb,
generated/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.
99 100 101 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 99 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
82 83 84 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 82 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
87 88 89 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 87 def link @link end |
#title ⇒ String
The block object's text, if it has text.
Corresponds to the JSON property title
92 93 94 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 92 def title @title end |
#url ⇒ String
The URL of the block object's link, if it has one.
Corresponds to the JSON property url
97 98 99 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 97 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
104 105 106 107 108 109 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 104 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 |