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:) ⇒ Header

Returns a new instance of Header.



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

def initialize(source:)
  @source = source
  @presentation = source
end

Instance Attribute Details

#presentationObject

Returns the value of attribute presentation.



12
13
14
# File 'lib/datashift/header.rb', line 12

def presentation
  @presentation
end

#sourceObject

Returns the value of attribute source.



12
13
14
# File 'lib/datashift/header.rb', line 12

def source
  @source
end

Instance Method Details

#to_sObject



19
20
21
# File 'lib/datashift/header.rb', line 19

def to_s
  presentation
end