Class: DataShift::Header

Inherits:
Object
  • Object
show all
Defined in:
lib/datashift/header.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#presentationObject

Returns the value of attribute presentation.



14
15
16
# File 'lib/datashift/header.rb', line 14

def presentation
  @presentation
end

#sourceObject

Returns the value of attribute source.



14
15
16
# File 'lib/datashift/header.rb', line 14

def source
  @source
end

Instance Method Details

#to_sObject



21
22
23
# File 'lib/datashift/header.rb', line 21

def to_s
  presentation
end