Method: ProcessOut::ExportLayoutConfiguration#prefill
- Defined in:
- lib/processout/export_layout_configuration.rb
#prefill(data) ⇒ Object
Prefills the object with the data passed as parameters Params:
data-
Hashof data
119 120 121 122 123 124 125 126 127 128 |
# File 'lib/processout/export_layout_configuration.rb', line 119 def prefill(data) if data.nil? return self end self.columns = data.fetch(:columns, self.columns) self.time = data.fetch(:time, self.time) self.amount = data.fetch(:amount, self.amount) self end |