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

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

Instance Method Summary collapse

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_titleString

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

Returns:

  • (String)


80
81
82
# File 'lib/google/apis/customsearch_v1/classes.rb', line 80

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)


85
86
87
# File 'lib/google/apis/customsearch_v1/classes.rb', line 85

def link
  @link
end

#titleString

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

Returns:

  • (String)


90
91
92
# File 'lib/google/apis/customsearch_v1/classes.rb', line 90

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)


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