Class: Dustbag::Dimension

Inherits:
Object
  • Object
show all
Includes:
Parser::Node
Defined in:
lib/dustbag/dimension.rb

Instance Attribute Summary

Attributes included from Parser::Node

#node, #subnodes

Instance Method Summary collapse

Methods included from Parser::Node

included, #initialize, #repeated_subnodes, #repeated_subnodes_text, #subnode, #subnode_text

Instance Method Details

#unitsObject



9
10
11
# File 'lib/dustbag/dimension.rb', line 9

def units
  attributes[:Units]
end

#valueObject



5
6
7
# File 'lib/dustbag/dimension.rb', line 5

def value
  text.to_i
end