Class: EcwidApi::OrderItem
Instance Method Summary collapse
-
#category ⇒ Object
Public: Returns the default ‘Category` that the product belongs to.
Methods inherited from Entity
#==, #[], #assign_attributes, #assign_raw_attributes, define_accessor, #destroy!, ecwid_accessor, ecwid_reader, ecwid_writer, #initialize, #marshal_dump, #marshal_load, #save, #to_hash, #to_json, #update_attributes, #update_raw_attributes, #url
Constructor Details
This class inherits a constructor from EcwidApi::Entity
Instance Method Details
#category ⇒ Object
Public: Returns the default ‘Category` that the product belongs to
11 12 13 |
# File 'lib/ecwid_api/order_item.rb', line 11 def category client.categories.find(data["categoryId"]) end |