Class: Cb::Models::Branding::Media

Inherits:
Object
  • Object
show all
Defined in:
lib/cb/models/implementations/branding/media.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Returns the value of attribute footer.



15
16
17
# File 'lib/cb/models/implementations/branding/media.rb', line 15

def footer
  @footer
end

#headerObject

Returns the value of attribute header.



15
16
17
# File 'lib/cb/models/implementations/branding/media.rb', line 15

def header
  @header
end

#header_typeObject

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_videoObject

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_logoObject

Returns the value of attribute mobile_logo.



15
16
17
# File 'lib/cb/models/implementations/branding/media.rb', line 15

def 
  @mobile_logo
end

#tablet_bannerObject

Returns the value of attribute tablet_banner.



15
16
17
# File 'lib/cb/models/implementations/branding/media.rb', line 15

def tablet_banner
  @tablet_banner
end