Sha256: 19eeab98091707725b75b89b00752090cd4e6c7f8e086e71471eb6bd70408e91
Contents?: true
Size: 261 Bytes
Versions: 2
Compression:
Stored size: 261 Bytes
Contents
class Stormglass::Subvalue < OpenStruct def initialize(src) @src = src super end def to_s "#{@src[:value]} #{@src[:unit]}" end def description "#{@src[:description]} #{@src[:unit_description]}" end def src @src end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stormglass-0.2.0 | lib/stormglass/subvalue.rb |
stormglass-0.1.1 | lib/stormglass/subvalue.rb |