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.
8 9 10 11 12 13 14 15 |
# File 'lib/cb/models/implementations/branding/media.rb', line 8 def initialize(args = {}) @header = args['Header'] || '' @header_type = args['HeaderType'] || '' = args['TabletBanner'] || '' @mobile_logo = args['MobileLogo'] || '' = args['Footer'] || '' @is_multi_video = args['IsMultiVideo'] == 'true' end |
Instance Attribute Details
#footer ⇒ Object
Returns the value of attribute footer.
6 7 8 |
# File 'lib/cb/models/implementations/branding/media.rb', line 6 def end |
#header ⇒ Object
Returns the value of attribute header.
6 7 8 |
# File 'lib/cb/models/implementations/branding/media.rb', line 6 def header @header end |
#header_type ⇒ Object
Returns the value of attribute header_type.
6 7 8 |
# File 'lib/cb/models/implementations/branding/media.rb', line 6 def header_type @header_type end |
#is_multi_video ⇒ Object
Returns the value of attribute is_multi_video.
6 7 8 |
# File 'lib/cb/models/implementations/branding/media.rb', line 6 def is_multi_video @is_multi_video end |
#mobile_logo ⇒ Object
Returns the value of attribute mobile_logo.
6 7 8 |
# File 'lib/cb/models/implementations/branding/media.rb', line 6 def mobile_logo @mobile_logo end |
#tablet_banner ⇒ Object
Returns the value of attribute tablet_banner.
6 7 8 |
# File 'lib/cb/models/implementations/branding/media.rb', line 6 def end |