Method: ProcessOut::ExportLayoutConfigurationConfigurationOptionsAmount#prefill

Defined in:
lib/processout/export_layout_configuration_configuration_options_amount.rb

#prefill(data) ⇒ Object

Prefills the object with the data passed as parameters Params:

data

Hash of data



69
70
71
72
73
74
75
76
77
# File 'lib/processout/export_layout_configuration_configuration_options_amount.rb', line 69

def prefill(data)
  if data.nil?
    return self
  end
  self.precision = data.fetch(:precision, self.precision)
  self.separator = data.fetch(:separator, self.separator)
  
  self
end