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.



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'] || ''
  @tablet_banner = args['TabletBanner'] || ''
   = args['MobileLogo'] || ''
  @footer = args['Footer'] || ''
  @is_multi_video = args['IsMultiVideo'] == 'true'
end

Instance Attribute Details

Returns the value of attribute footer.



6
7
8
# File 'lib/cb/models/implementations/branding/media.rb', line 6

def footer
  @footer
end

#headerObject

Returns the value of attribute header.



6
7
8
# File 'lib/cb/models/implementations/branding/media.rb', line 6

def header
  @header
end

#header_typeObject

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_videoObject

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_logoObject

Returns the value of attribute mobile_logo.



6
7
8
# File 'lib/cb/models/implementations/branding/media.rb', line 6

def 
  
end

#tablet_bannerObject

Returns the value of attribute tablet_banner.



6
7
8
# File 'lib/cb/models/implementations/branding/media.rb', line 6

def tablet_banner
  @tablet_banner
end