in lib/facebook_ads/ad_objects/server_side/content.rb [71:109]
def build(attributes = {})
return unless attributes.is_a?(Hash)
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
if attributes.has_key?(:'product_id')
self.product_id = attributes[:'product_id']
end
if attributes.has_key?(:'quantity')
self.quantity = attributes[:'quantity']
end
if attributes.has_key?(:'item_price')
self.item_price = attributes[:'item_price']
end
if attributes.has_key?(:'title')
self.title = attributes[:'title']
end
if attributes.has_key?(:'description')
self.description = attributes[:'description']
end
if attributes.has_key?(:'brand')
self.brand = attributes[:'brand']
end
if attributes.has_key?(:'category')
self.category = attributes[:'category']
end
if attributes.has_key?(:'delivery_category')
self.delivery_category = attributes[:'delivery_category']
end
end