lib/mws/orders/entity.rb in mws-orders-0.1.0 vs lib/mws/orders/entity.rb in mws-orders-0.1.1
- old
+ new
@@ -1,12 +1,15 @@
require "cgi"
require "time"
require "money"
+require "structure"
require "mws/orders/document"
module MWS
module Orders
class Entity < Document
+ include Structure
+
def float_at_xpath(path)
text = text_at_xpath(path)
text.to_f if text
end