module Fudo3
Constants
- JO_BASE
- TSUBO_BASE
- VERSION
Public Class Methods
heibei_to_jo(heibei)
click to toggle source
平米 → 畳 変換 @param [Float] heibei 平米 @return [Float] 畳
# File lib/fudo3.rb, line 21 def self.heibei_to_jo(heibei) heibei.to_f / JO_BASE end
heibei_to_tsubo(heibei)
click to toggle source
平米 → 坪 変換 @param [Float] heibei 平米 @return [Float] 坪
# File lib/fudo3.rb, line 14 def self.heibei_to_tsubo(heibei) heibei.to_f / TSUBO_BASE end
jo_to_heibei(jo)
click to toggle source
畳 → 平米 変換 @param [Float] jo 畳 @return [Float] 平米
# File lib/fudo3.rb, line 42 def self.jo_to_heibei(jo) jo.to_f * JO_BASE end
jo_to_tsubo(jo)
click to toggle source
畳 → 坪 変換 @param [Float] jo 畳 @return [Float] 坪
# File lib/fudo3.rb, line 49 def self.jo_to_tsubo(jo) jo.to_f * JO_BASE / TSUBO_BASE end
price_per_heibei(price, heibei)
click to toggle source
平米単価 @param [Float] price 価格(万円) @param [Float] heibei 平米 @return [Float] 平米単価
# File lib/fudo3.rb, line 73 def self.price_per_heibei(price, heibei) price.to_f / heibei end
price_per_tsubo(price, tsubo)
click to toggle source
坪単価 @param [Float] price 価格(万円) @param [Float] tsubo 坪 @return [Float] 坪単価
# File lib/fudo3.rb, line 65 def self.price_per_tsubo(price, tsubo) price.to_f / tsubo end
to_heibei(length, width)
click to toggle source
平米 @param [Float] length 縦 # @param [Float] width 横 @return [Float] 平米
# File lib/fudo3.rb, line 57 def self.to_heibei(length, width) length.to_f * width.to_f end
tsubo_to_heibei(tsubo)
click to toggle source
坪 → 平米 変換 @param [Float] tsubo 坪 @return [Float] 平米
# File lib/fudo3.rb, line 28 def self.tsubo_to_heibei(tsubo) tsubo.to_f * TSUBO_BASE end
tsubo_to_jo(tsubo)
click to toggle source
坪 → 畳 変換 @param [Float] tsubo 坪 @return [Float] 畳
# File lib/fudo3.rb, line 35 def self.tsubo_to_jo(tsubo) tsubo.to_f * TSUBO_BASE / JO_BASE end