Class: Spree::Metafields::Number
- Inherits:
-
Spree::Metafield
- Object
- Spree::Metafield
- Spree::Metafields::Number
- Defined in:
- app/models/spree/metafields/number.rb
Instance Method Summary collapse
Instance Method Details
#csv_value ⇒ Object
10 11 12 |
# File 'app/models/spree/metafields/number.rb', line 10 def csv_value value.to_d.to_s end |
#serialize_value ⇒ Object
6 7 8 |
# File 'app/models/spree/metafields/number.rb', line 6 def serialize_value value.to_d end |