Class: Cb::Models::Branding::Media
- Inherits:
-
Object
- Object
- Cb::Models::Branding::Media
- Defined in:
- lib/cb/models/implementations/branding/media.rb
Instance Attribute Summary collapse
-
#footer ⇒ Object
Returns the value of attribute footer.
-
#header ⇒ Object
Returns the value of attribute header.
-
#header_type ⇒ Object
Returns the value of attribute header_type.
-
#is_multi_video ⇒ Object
Returns the value of attribute is_multi_video.
-
#mobile_logo ⇒ Object
Returns the value of attribute mobile_logo.
-
#tablet_banner ⇒ Object
Returns the value of attribute tablet_banner.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Media
constructor
A new instance of Media.
Constructor Details
#initialize(args = {}) ⇒ Media
Returns a new instance of Media.
17 18 19 20 21 22 23 24 |
# File 'lib/cb/models/implementations/branding/media.rb', line 17 def initialize(args = {}) @header = args['Header'] || '' @header_type = args['HeaderType'] || '' @tablet_banner = args['TabletBanner'] || '' @mobile_logo = args['MobileLogo'] || '' @footer = args['Footer'] || '' @is_multi_video = args['IsMultiVideo'] == 'true' end |
Instance Attribute Details
#footer ⇒ Object
Returns the value of attribute footer.
15 16 17 |
# File 'lib/cb/models/implementations/branding/media.rb', line 15 def @footer end |
#header ⇒ Object
Returns the value of attribute header.
15 16 17 |
# File 'lib/cb/models/implementations/branding/media.rb', line 15 def header @header end |
#header_type ⇒ Object
Returns the value of attribute header_type.
15 16 17 |
# File 'lib/cb/models/implementations/branding/media.rb', line 15 def header_type @header_type end |
#is_multi_video ⇒ Object
Returns the value of attribute is_multi_video.
15 16 17 |
# File 'lib/cb/models/implementations/branding/media.rb', line 15 def is_multi_video @is_multi_video end |
#mobile_logo ⇒ Object
Returns the value of attribute mobile_logo.
15 16 17 |
# File 'lib/cb/models/implementations/branding/media.rb', line 15 def mobile_logo @mobile_logo end |
#tablet_banner ⇒ Object
Returns the value of attribute tablet_banner.
15 16 17 |
# File 'lib/cb/models/implementations/branding/media.rb', line 15 def @tablet_banner end |