class Fog::Compute::CloudSigma::PriceRecord
Public Instance Methods
base_price()
click to toggle source
The base price of the resource. This is the price for the base API unit which is byte for memory, data, etc. and MHz for CPU. Also the price is per second for time based resource (basically everything except data transfer which is not limited in time)
# File lib/fog/cloudsigma/models/price_record.rb, line 31 def base_price price / multiplier end
price()
click to toggle source
# File lib/fog/cloudsigma/models/price_record.rb, line 15 def price if attributes[:price] BigDecimal(attributes[:price]) else nil end end
price=(new_price)
click to toggle source
# File lib/fog/cloudsigma/models/price_record.rb, line 23 def price=(new_price) attributes[:price] = new_price.kind_of?(String) ? new_price : new_price.to_s('F') end