to_s

in lib/facebook_ads/ad_objects/server_side/content.rb [146:174]


      def to_s
        hash = {}
        unless product_id.nil?
          hash['product_id'] = product_id
        end
        unless quantity.nil?
          hash['quantity'] = quantity
        end
        unless item_price.nil?
          hash['item_price'] = item_price
        end
        unless title.nil?
          hash['title'] = title
        end
        unless description.nil?
          hash['description'] = description
        end
        unless brand.nil?
          hash['brand'] = brand
        end
        unless category.nil?
          hash['category'] = category
        end
        unless delivery_category.nil?
          hash['delivery_category'] = delivery_category
        end
        hash.to_s
      end