Sha256: d3e4c4e3363ed0cdd28ca9d71e016bcfd2a98b7c0cead6cc753166e3db1a3969

Contents?: true

Size: 622 Bytes

Versions: 10

Compression:

Stored size: 622 Bytes

Contents

# The implied unit of measure for a nutrition estimate.
module Yummly
  class Unit

    # Single unit display name for unit of measure.
    attr_accessor :name

    # Single unit abbreviation for unit of measure.
    attr_accessor :abbreviation

    # Plural display name for unit of measure.
    attr_accessor :plural

    # Plural unit abbreviation for unit of measure.
    attr_accessor :plural_abbreviation

    def initialize(values)
      @name = values["name"]
      @abbreviation = values["abbreviation"]
      @plural = values["plural"]
      @plural_abbreviation = values["pluralAbbreviation"]
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
yummly-0.0.13 lib/yummly/unit.rb
yummly-0.0.12 lib/yummly/unit.rb
yummly-0.0.11 lib/yummly/unit.rb
yummly-0.0.10 lib/yummly/unit.rb
yummly-0.0.9 lib/yummly/unit.rb
yummly-0.0.8 lib/yummly/unit.rb
yummly-0.0.7 lib/yummly/unit.rb
yummly-0.0.6 lib/yummly/unit.rb
yummly-0.0.5 lib/yummly/unit.rb
yummly-0.0.4 lib/yummly/unit.rb