Sha256: a7e17ef05604f2fae967ce1769ebac06433b3f0ed6c8268bf37ef454f0e7db14

Contents?: true

Size: 289 Bytes

Versions: 11

Compression:

Stored size: 289 Bytes

Contents

module Unitwise::Standard
  class BaseUnit < Base

    def self.remote_key
      "base_unit"
    end

    def property
      attributes["property"].to_s
    end

    def dim
      attributes["@dim"]
    end

    def to_hash
      super.merge property: property, dim: dim
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
unitwise-0.6.0 lib/unitwise/standard/base_unit.rb
unitwise-0.5.1 lib/unitwise/standard/base_unit.rb
unitwise-0.5.0 lib/unitwise/standard/base_unit.rb
unitwise-0.4.0 lib/unitwise/standard/base_unit.rb
unitwise-0.3.2 lib/unitwise/standard/base_unit.rb
unitwise-0.3.1 lib/unitwise/standard/base_unit.rb
unitwise-0.3.0 lib/unitwise/standard/base_unit.rb
unitwise-0.2.2 lib/unitwise/standard/base_unit.rb
unitwise-0.2.1 lib/unitwise/standard/base_unit.rb
unitwise-0.2.0 lib/unitwise/standard/base_unit.rb
unitwise-0.1.0 lib/unitwise/standard/base_unit.rb