Sha256: 725856dd7eaa8f4e46f3c64875895a2c86e6c00b0aa051f584166514ca9c0748

Contents?: true

Size: 717 Bytes

Versions: 20

Compression:

Stored size: 717 Bytes

Contents

module Adparlor
  module Facebook
    module GraphApi
      class ProductSet < GraphObject
        include Fields::ProductSet
        include Traits::Methods
        field_attrs FIELDS
        allow_local_method :create, :destroy, :update

        def path
          raise FbError.new('required parameter product_catalog_id missing', 500) unless @product_catalog_id
          "/#{@product_catalog_id}/product_sets"
        end

        def update_path
          raise FbError.new('required parameter id missing', 500) unless @id
          "/#{@id}"
        end

        def products
          @product_items ||= CollectionProxy.new ProductItem, "/#{id}/products", access_token
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
adparlor-facebook-0.8.2 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.8.0 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.7.9 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.7.8 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.7.7 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.7.6 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.7.5 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.7.4 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.7.3 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.7.2 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.7.1 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.7.0 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.6.6 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.6.5 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.6.4 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.6.3 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.6.2 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.6.1 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.6.0 lib/adparlor/facebook/graph_api/product_set.rb
adparlor-facebook-0.5.9 lib/adparlor/facebook/graph_api/product_set.rb