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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BodyLine

Returns a new instance of BodyLine.



100
101
102
# File 'generated/google/apis/customsearch_v1/classes.rb', line 100

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)


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

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)


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

def link
  @link
end

#titleString

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

Returns:

  • (String)


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

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)


98
99
100
# File 'generated/google/apis/customsearch_v1/classes.rb', line 98

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



105
106
107
108
109
110
# File 'generated/google/apis/customsearch_v1/classes.rb', line 105

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