Class: Google::Apis::CustomsearchV1::Promotion::BodyLine

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_titleString

The block object's text in HTML, if it has text. Corresponds to the JSON property htmlTitle

Returns:

  • (String)


82
83
84
# File 'generated/google/apis/customsearch_v1/classes.rb', line 82

def html_title
  @html_title
end

The anchor text of the block object's link, if it has a link. Corresponds to the JSON property link

Returns:

  • (String)


87
88
89
# File 'generated/google/apis/customsearch_v1/classes.rb', line 87

def link
  @link
end

#titleString

The block object's text, if it has text. Corresponds to the JSON property title

Returns:

  • (String)


92
93
94
# File 'generated/google/apis/customsearch_v1/classes.rb', line 92

def title
  @title
end

#urlString

The URL of the block object's link, if it has one. Corresponds to the JSON property url

Returns:

  • (String)


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