Class: Spree::Metafields::Number

Inherits:
Spree::Metafield show all
Defined in:
app/models/spree/metafields/number.rb

Instance Method Summary collapse

Instance Method Details

#csv_valueObject



10
11
12
# File 'app/models/spree/metafields/number.rb', line 10

def csv_value
  value.to_d.to_s
end

#serialize_valueObject



6
7
8
# File 'app/models/spree/metafields/number.rb', line 6

def serialize_value
  value.to_d
end