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

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



153
154
155
# File 'generated/google/apis/customsearch_v1/classes.rb', line 153

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#html_titleString

Corresponds to the JSON property htmlTitle

Returns:

  • (String)


136
137
138
# File 'generated/google/apis/customsearch_v1/classes.rb', line 136

def html_title
  @html_title
end

Corresponds to the JSON property link

Returns:

  • (String)


141
142
143
# File 'generated/google/apis/customsearch_v1/classes.rb', line 141

def link
  @link
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


146
147
148
# File 'generated/google/apis/customsearch_v1/classes.rb', line 146

def title
  @title
end

#urlString

Corresponds to the JSON property url

Returns:

  • (String)


151
152
153
# File 'generated/google/apis/customsearch_v1/classes.rb', line 151

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



158
159
160
161
162
163
# File 'generated/google/apis/customsearch_v1/classes.rb', line 158

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