Module: SilverPop::Client::RelationalTable
- Included in:
- SilverPop::Client
- Defined in:
- lib/client/relational_table.rb
Instance Method Summary collapse
-
#insert_update_relational_table(table_id, rows) ⇒ Mash
InsertUpdateRelationalTable - This interface inserts or updates relational data.
Instance Method Details
#insert_update_relational_table(table_id, rows) ⇒ Mash
InsertUpdateRelationalTable - This interface inserts or updates relational data.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/client/relational_table.rb', line 12 def insert_update_relational_table table_id, rows builder = Builder::XmlMarkup.new xml = builder.Envelope { builder.Body { builder.InsertUpdateRelationalTable { builder.TABLE_ID table_id builder.ROWS { rows.each do |row| builder.ROW { row.each do |key, value| builder.COLUMN(name: key) { builder.cdata!(value) } end } end } } } } post(xml) end |