class Unitwise::Standard::BaseUnit
Public Class Methods
remote_key()
click to toggle source
# File lib/unitwise/standard/base_unit.rb, line 4 def self.remote_key "base_unit" end
Public Instance Methods
dim()
click to toggle source
# File lib/unitwise/standard/base_unit.rb, line 12 def dim attributes["@dim"] end
property()
click to toggle source
# File lib/unitwise/standard/base_unit.rb, line 8 def property attributes["property"].to_s end
to_hash()
click to toggle source
Calls superclass method
Unitwise::Standard::Base#to_hash
# File lib/unitwise/standard/base_unit.rb, line 16 def to_hash super.merge :property => property, :dim => dim end