Class: VersacommerceAPI::Item

Inherits:
Base show all
Defined in:
lib/versacommerce_api/resources/item.rb

Instance Method Summary collapse

Methods inherited from Base

activate_session, all, clear_session, headers, root!

Methods included from Countable

#count

Methods inherited from ActiveResource::Base

build, delete, headers

Instance Method Details

#product ⇒ Object



4
5
6
# File 'lib/versacommerce_api/resources/item.rb', line 4

def product
  Product.find product_id
end