Class: Unitwise::Standard::BaseUnit
- Inherits:
-
Base
- Object
- Base
- Unitwise::Standard::BaseUnit
show all
- Defined in:
- lib/unitwise/standard/base_unit.rb
Instance Attribute Summary
Attributes inherited from Base
#attributes
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
all, hash, #initialize, local_key, #names, path, #primary_code, read, #secondary_code, #symbol, write
Methods included from Extras
#hash_to_markup
Class Method Details
.remote_key ⇒ Object
4
5
6
|
# File 'lib/unitwise/standard/base_unit.rb', line 4
def self.remote_key
"base_unit"
end
|
Instance Method Details
#dim ⇒ Object
12
13
14
|
# File 'lib/unitwise/standard/base_unit.rb', line 12
def dim
attributes["@dim"]
end
|
#property ⇒ Object
8
9
10
|
# File 'lib/unitwise/standard/base_unit.rb', line 8
def property
attributes["property"].to_s
end
|
#to_hash ⇒ Object
16
17
18
|
# File 'lib/unitwise/standard/base_unit.rb', line 16
def to_hash
super.merge :property => property, :dim => dim
end
|