Class: Repor::Dimensions::NumberDimension::Bin
- Inherits:
-
BinDimension::Bin
- Object
- BinDimension::Bin
- Repor::Dimensions::NumberDimension::Bin
- Defined in:
- lib/repor/dimensions/number_dimension.rb
Instance Method Summary collapse
Methods inherited from BinDimension::Bin
#==, #[], #as_json, #bin_text, #cast, #cast_bin_text, #contains_sql, from_hash, from_sql, #has_key?, #hash, #initialize, #inspect, #max, #min, #quote, #row_sql, #valid?, #values_at
Constructor Details
This class inherits a constructor from Repor::Dimensions::BinDimension::Bin
Instance Method Details
#parse(value) ⇒ Object
45 46 47 |
# File 'lib/repor/dimensions/number_dimension.rb', line 45 def parse(value) value.to_f end |
#parses?(value) ⇒ Boolean
41 42 43 |
# File 'lib/repor/dimensions/number_dimension.rb', line 41 def parses?(value) Repor.numeric?(value) end |