Method: ProcessOut::ExportLayoutConfiguration#fill_with_data

Defined in:
lib/processout/export_layout_configuration.rb

#fill_with_data(data) ⇒ Object

Fills the object with data coming from the API Params:

data

Hash of data coming from the API



99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# File 'lib/processout/export_layout_configuration.rb', line 99

def fill_with_data(data)
  if data.nil?
    return self
  end
  if data.include? "columns"
    self.columns = data["columns"]
  end
  if data.include? "time"
    self.time = data["time"]
  end
  if data.include? "amount"
    self.amount = data["amount"]
  end
  
  self
end