Sha256: bebdb6e84b2a8dc69799a0458edb2610255cc8585e60d5c27425376849b0313d
Contents?: true
Size: 333 Bytes
Versions: 2
Compression:
Stored size: 333 Bytes
Contents
class Stormglass::AlternateValues::Meters def self.perform(subvalues) inject_feet(subvalues) end private def self.inject_feet(subvalues) subvalues << {unit_type: 'feet', unit: 'ft', value: (subvalues.first[:value] / 0.3048).round(2), description: subvalues.first[:description], unit_description: 'feet'} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stormglass-0.2.0 | lib/stormglass/alternate_values/meters.rb |
stormglass-0.1.1 | lib/stormglass/alternate_values/meters.rb |