Class: DataShift::Header
- Inherits:
-
Object
- Object
- DataShift::Header
- Defined in:
- lib/datashift/header.rb
Instance Attribute Summary collapse
-
#presentation ⇒ Object
Returns the value of attribute presentation.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source:, presentation: nil) ⇒ Header
constructor
A new instance of Header.
- #to_s ⇒ Object
Constructor Details
#initialize(source:, presentation: nil) ⇒ Header
Returns a new instance of Header.
16 17 18 19 |
# File 'lib/datashift/header.rb', line 16 def initialize(source:, presentation: nil) @source = source @presentation = presentation || source end |
Instance Attribute Details
#presentation ⇒ Object
Returns the value of attribute presentation.
14 15 16 |
# File 'lib/datashift/header.rb', line 14 def presentation @presentation end |
#source ⇒ Object
Returns the value of attribute source.
14 15 16 |
# File 'lib/datashift/header.rb', line 14 def source @source end |
Instance Method Details
#to_s ⇒ Object
21 22 23 |
# File 'lib/datashift/header.rb', line 21 def to_s presentation end |