lib/printfection/line_item.rb in printfection-1.0.0 vs lib/printfection/line_item.rb in printfection-1.0.1
- old
+ new
@@ -14,8 +14,16 @@
def self.uri
"/lineitems"
end
+ def item
+ @item ||= Item.retrieve(item_id)
+ end
+
+ def size
+ @size ||= item.sizes.find { |s| s.id == size_id }
+ end
+
end
end