motion/spree.rb in spree-wrap-0.0.1 vs motion/spree.rb in spree-wrap-0.0.2
- old
+ new
@@ -1,11 +1,33 @@
+#
+# This module contains all the methods required to consume the Spree API.
+#
+# Refer to the modules on the Spree::API namespace for more information.
+#
+# Spree::API::Country
+# Spree::API::Product
+# Spree::API::Taxonomy
+# Spree::API::Variant
+# Spree::API::Zone
+#
module Spree
+ #
+ # Getter for the endpoint URL
+ #
def self.endpoint
@endpoint
end
+ #
+ # Setter for the endpoint URL
+ #
def self.endpoint=(uri)
@endpoint = uri
end
- include Spree::API::Product
+ extend Spree::API::Country
+ extend Spree::API::Product
+ extend Spree::API::ProductProperty
+ extend Spree::API::Taxonomy
+ extend Spree::API::Variant
+ extend Spree::API::Zone
end