class Oshpark::OrderItem
Constants
- STATES
Public Class Methods
attrs()
click to toggle source
# File lib/oshpark/order_item.rb, line 6 def self.attrs %w| name batches batch_cost sub_total price quantity state confirmed_at panelized_at ordered_at fabbed_at shipped_at project_id panel_id order_item_option_selections | end
Public Instance Methods
confirmed_at()
click to toggle source
# File lib/oshpark/order_item.rb, line 28 def confirmed_at time_from @confirmed_at end
fabbed_at()
click to toggle source
# File lib/oshpark/order_item.rb, line 40 def fabbed_at time_from @fabbed_at end
order_item_option_selections()
click to toggle source
# File lib/oshpark/order_item.rb, line 22 def order_item_option_selections Array(@order_item_option_selections).map do |json| Oshpark::OrderItemOptionSelection.from_json json end end
ordered_at()
click to toggle source
# File lib/oshpark/order_item.rb, line 36 def ordered_at time_from @ordered_at end
panel()
click to toggle source
# File lib/oshpark/order_item.rb, line 18 def panel Oshpark::Panel.find @panel_id if @panel_id end
panelized_at()
click to toggle source
# File lib/oshpark/order_item.rb, line 32 def panelized_at time_from @panelized end
project()
click to toggle source
# File lib/oshpark/order_item.rb, line 14 def project Oshpark::Project.find @project_id if @project_id end
shipped_at()
click to toggle source
# File lib/oshpark/order_item.rb, line 44 def shipped_at time_from @shipped_at end