Sha256: b8742c67b888412360a75f3bfd53a24195ed00adfd053c7212c96972b9a9e5a2

Contents?: true

Size: 407 Bytes

Versions: 5

Compression:

Stored size: 407 Bytes

Contents

class Rtml::State::VariableMapping < HashWithIndifferentAccess
  def initialize(*args)
    super
    setup_default_mapping
  end

  # Sets up the variable mapping. Override this method if you intend to add custom variables to the mapping.
  def setup_default_mapping
    %w(datetime datetime_start itid model os part_number serial_number).each do |var|
      self["terminal.#{var}"] = var
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rtml-2.0.4 builtin/models/rtml/state/variable_mapping.rb
rtml-2.0.3 builtin/models/rtml/state/variable_mapping.rb
rtml-2.0.2 builtin/models/rtml/state/variable_mapping.rb
rtml-2.0.1 builtin/models/rtml/state/variable_mapping.rb
rtml-2.0.0.alpha.1 builtin/models/rtml/state/variable_mapping.rb