Module: Epages::REST::ShippingMethods

Includes:
Utils
Included in:
API
Defined in:
lib/epages/rest/shipping_methods.rb

Overview

Instance Method Summary collapse

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, options = {})
  id = epages_id(object)
  perform_get_with_object("/shipping-methods/#{id}", options, Epages::ShippingMethod)
end

#shipping_methods(options = {}) ⇒ Object



11
12
13
# File 'lib/epages/rest/shipping_methods.rb', line 11

def shipping_methods(options = {})
  perform_get_with_objects('/shipping-methods', options, Epages::ShippingMethod)
end