module RedisModel::Types::Float

Internal: Methods needed for Float data type.

Public Instance Methods

to_f() click to toggle source

Public: Retrieves Float value stored in the key.

Returns Float value stored in the key. nil if it does not exist.

# File lib/redis_model/types/float.rb, line 10
def to_f
  get && get.to_f
end
Also aliased as: to_value
to_value()
Alias for: to_f