Class: RubyArea::Units::SquareFoot
- Inherits:
-
Object
- Object
- RubyArea::Units::SquareFoot
- Defined in:
- lib/ruby_area/units/square_foot.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ SquareFoot
constructor
A new instance of SquareFoot.
- #to_square_meter ⇒ Object
Constructor Details
#initialize(value) ⇒ SquareFoot
Returns a new instance of SquareFoot.
6 7 8 |
# File 'lib/ruby_area/units/square_foot.rb', line 6 def initialize value @value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/ruby_area/units/square_foot.rb', line 4 def value @value end |
Instance Method Details
#to_square_meter ⇒ Object
10 11 12 |
# File 'lib/ruby_area/units/square_foot.rb', line 10 def to_square_meter @value * 0.092903 end |