Class: Fiona7::AttributeReaders::NumberAsString
- Inherits:
-
AttributeReader
- Object
- AttributeReader
- Fiona7::AttributeReaders::NumberAsString
- Defined in:
- lib/fiona7/attribute_readers/number_as_string.rb
Instance Method Summary collapse
Methods inherited from AttributeReader
Constructor Details
This class inherits a constructor from Fiona7::AttributeReaders::AttributeReader
Instance Method Details
#call ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/fiona7/attribute_readers/number_as_string.rb', line 6 def call val = self.obj[self.attr_name] if val.blank? nil else val.to_f end end |