Class: Google::Apis::AdsensehostV4_1::AdStyle

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adsensehost_v4_1/classes.rb,
generated/google/apis/adsensehost_v4_1/representations.rb,
generated/google/apis/adsensehost_v4_1/representations.rb

Defined Under Namespace

Classes: Colors, Font

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AdStyle


228
229
230
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 228

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

Instance Attribute Details

#colorsGoogle::Apis::AdsensehostV4_1::AdStyle::Colors

The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash. Corresponds to the JSON property colors


210
211
212
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 210

def colors
  @colors
end

#cornersString

The style of the corners in the ad. Possible values are SQUARE, SLIGHTLY_ROUNDED and VERY_ROUNDED. Corresponds to the JSON property corners


216
217
218
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 216

def corners
  @corners
end

#fontGoogle::Apis::AdsensehostV4_1::AdStyle::Font

The font which is included in the style. Corresponds to the JSON property font


221
222
223
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 221

def font
  @font
end

#kindString

Kind this is, in this case adsensehost#adStyle. Corresponds to the JSON property kind


226
227
228
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 226

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


233
234
235
236
237
238
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 233

def update!(**args)
  @colors = args[:colors] if args.key?(:colors)
  @corners = args[:corners] if args.key?(:corners)
  @font = args[:font] if args.key?(:font)
  @kind = args[:kind] if args.key?(:kind)
end