Sha256: a37cb231e5745b1a400788fc7a4401631c3367db57ba1051bb06dc75542ef599

Contents?: true

Size: 624 Bytes

Versions: 2

Compression:

Stored size: 624 Bytes

Contents

class Stormglass::AlternateValues

  def self.perform(subvalues)
    @original = subvalues.first
    case subvalues.first[:unit_type]
      when "Ms" then self::MetersSec.perform(subvalues)
      when "M"  then self::Meters.perform(subvalues)
      when "C" then self::Celsius.perform(subvalues)
      when "Km" then self::Kilometers.perform(subvalues)
      when 'Kgm2' then self::Kgm2.perform(subvalues)
      when 'Deg' then self::Degrees.perform(subvalues)
    end
  end

  def self.meters_sec(subvalues)

  end

  def self.meters(subvalues)

  end

  def self.c(subvalues)

  end

  def self.km(subvalues)

  end


end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stormglass-0.2.0 lib/stormglass/alternate_values.rb
stormglass-0.1.1 lib/stormglass/alternate_values.rb