Class: RubyArea::Units::SquareFoot

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_area/units/square_foot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject

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_meterObject



10
11
12
# File 'lib/ruby_area/units/square_foot.rb', line 10

def to_square_meter
  @value * 0.092903
end