Class: Cb::Models::Branding::Section

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, args = {}) ⇒ Section

Returns a new instance of Section.



17
18
19
20
21
22
23
24
25
# File 'lib/cb/models/implementations/branding/section.rb', line 17

def initialize(type, args = {})
  @type = type
  @section_1 = args['Section1'] || ''
  @section_2 = args['Section2'] || ''
  @section_3 = args['Section3'] || ''
  @description = args['Description'] || ''
  @requirements = args['Requirements'] || ''
  @snapshot = args['Snapshot'] || ''
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#requirementsObject

Returns the value of attribute requirements.



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

def requirements
  @requirements
end

#section_1Object

Returns the value of attribute section_1.



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

def section_1
  @section_1
end

#section_2Object

Returns the value of attribute section_2.



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

def section_2
  @section_2
end

#section_3Object

Returns the value of attribute section_3.



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

def section_3
  @section_3
end

#snapshotObject

Returns the value of attribute snapshot.



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

def snapshot
  @snapshot
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end