Class: EcwidApi::OrderItem

Inherits:
Entity
  • Object
show all
Defined in:
lib/ecwid_api/order_item.rb

Instance Method Summary collapse

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

#categoryObject

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