Class: Cb::Models::Branding::Section
- Inherits:
-
Object
- Object
- Cb::Models::Branding::Section
- Defined in:
- lib/cb/models/implementations/branding/section.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#requirements ⇒ Object
Returns the value of attribute requirements.
-
#section_1 ⇒ Object
Returns the value of attribute section_1.
-
#section_2 ⇒ Object
Returns the value of attribute section_2.
-
#section_3 ⇒ Object
Returns the value of attribute section_3.
-
#snapshot ⇒ Object
Returns the value of attribute snapshot.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, args = {}) ⇒ Section
constructor
A new instance of Section.
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
#description ⇒ Object
Returns the value of attribute description.
15 16 17 |
# File 'lib/cb/models/implementations/branding/section.rb', line 15 def description @description end |
#requirements ⇒ Object
Returns the value of attribute requirements.
15 16 17 |
# File 'lib/cb/models/implementations/branding/section.rb', line 15 def requirements @requirements end |
#section_1 ⇒ Object
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_2 ⇒ Object
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_3 ⇒ Object
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 |
#snapshot ⇒ Object
Returns the value of attribute snapshot.
15 16 17 |
# File 'lib/cb/models/implementations/branding/section.rb', line 15 def snapshot @snapshot end |
#type ⇒ Object
Returns the value of attribute type.
15 16 17 |
# File 'lib/cb/models/implementations/branding/section.rb', line 15 def type @type end |