Class: OrderItem

Inherits:
Base
  • Object
show all
Defined in:
app/models/order_item.rb

Constant Summary

Constants inherited from Base

Base::BASE_URL

Instance Method Summary collapse

Instance Method Details

#orderObject



2
3
4
# File 'app/models/order_item.rb', line 2

def order
  Order.find(:one, :from => "/v1/orders/#{self.order_id}.xml")
end

#propertiesObject



6
7
8
# File 'app/models/order_item.rb', line 6

def properties
  OrderItemProperty.find(:all, :from => "/v1/order_items/#{self.id}/properties.xml")
end