Module: Epages::REST::ShippingMethods
Overview
implement the calls in developer.epages.com/apps/api-reference/resource-shipping-method.html
Instance Method Summary collapse
- #shipping_method(object, options = {}) ⇒ Object
-
#shipping_methods(options = {}) ⇒ Object
implements the call developer.epages.com/apps/api-reference/get-shops-shopid-shipping-methods.html.
Methods included from Utils
build_shop_from, camelize_keys, camelize_words, options_to_multipart_request, options_to_patch_request, parse_attribute_as, parse_attribute_as_array_of, parse_attributes, symbolize_keys!, to_query_options, underscorize_keys
Instance Method Details
#shipping_method(object, options = {}) ⇒ Object
16 17 18 19 |
# File 'lib/epages/rest/shipping_methods.rb', line 16 def shipping_method(object, = {}) id = epages_id(object) perform_get_with_object("/shipping-methods/#{id}", , Epages::ShippingMethod) end |
#shipping_methods(options = {}) ⇒ Object
implements the call developer.epages.com/apps/api-reference/get-shops-shopid-shipping-methods.html
11 12 13 |
# File 'lib/epages/rest/shipping_methods.rb', line 11 def shipping_methods( = {}) perform_get_with_objects('/shipping-methods', , Epages::ShippingMethod) end |