Sha256: eb11ae9f67f82362a85f69ddd26a6c2bb743aa5aa70431c51d2f39ce8928c38b

Contents?: true

Size: 480 Bytes

Versions: 2

Compression:

Stored size: 480 Bytes

Contents

# Copyright:: (c) Autotelik Media Ltd 2016
# Author ::   Tom Statter
# Date ::     Feb 2016
# License::   MIT
#
# Details::   A column header.
#
#             Calling to_s on a header object will return the presentation value
#
module DataShift

  class Header

    attr_accessor :source, :presentation

    def initialize(source:, presentation: nil)
      @source = source
      @presentation = presentation || source
    end

    def to_s
      presentation
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
datashift-0.40.4 lib/datashift/header.rb
datashift-0.40.3 lib/datashift/header.rb