Class: Google::Apis::BooksV1::Discoveryclusters::Cluster::BannerWithContentContainer

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

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) ⇒ BannerWithContentContainer

Returns a new instance of BannerWithContentContainer.



1424
1425
1426
# File 'generated/google/apis/books_v1/classes.rb', line 1424

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

Instance Attribute Details

#fill_color_argbString

Corresponds to the JSON property fillColorArgb

Returns:

  • (String)


1397
1398
1399
# File 'generated/google/apis/books_v1/classes.rb', line 1397

def fill_color_argb
  @fill_color_argb
end

#image_urlString

Corresponds to the JSON property imageUrl

Returns:

  • (String)


1402
1403
1404
# File 'generated/google/apis/books_v1/classes.rb', line 1402

def image_url
  @image_url
end

#mask_color_argbString

Corresponds to the JSON property maskColorArgb

Returns:

  • (String)


1407
1408
1409
# File 'generated/google/apis/books_v1/classes.rb', line 1407

def mask_color_argb
  @mask_color_argb
end

#more_button_textString

Corresponds to the JSON property moreButtonText

Returns:

  • (String)


1412
1413
1414
# File 'generated/google/apis/books_v1/classes.rb', line 1412

def more_button_text
  @more_button_text
end

#more_button_urlString

Corresponds to the JSON property moreButtonUrl

Returns:

  • (String)


1417
1418
1419
# File 'generated/google/apis/books_v1/classes.rb', line 1417

def more_button_url
  @more_button_url
end

#text_color_argbString

Corresponds to the JSON property textColorArgb

Returns:

  • (String)


1422
1423
1424
# File 'generated/google/apis/books_v1/classes.rb', line 1422

def text_color_argb
  @text_color_argb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1429
1430
1431
1432
1433
1434
1435
1436
# File 'generated/google/apis/books_v1/classes.rb', line 1429

def update!(**args)
  @fill_color_argb = args[:fill_color_argb] if args.key?(:fill_color_argb)
  @image_url = args[:image_url] if args.key?(:image_url)
  @mask_color_argb = args[:mask_color_argb] if args.key?(:mask_color_argb)
  @more_button_text = args[:more_button_text] if args.key?(:more_button_text)
  @more_button_url = args[:more_button_url] if args.key?(:more_button_url)
  @text_color_argb = args[:text_color_argb] if args.key?(:text_color_argb)
end