class Sendcloud::ShippingMethod
Public Instance Methods
get(shipping_id)
click to toggle source
# File lib/sendcloud/shipping_method.rb, line 10 def get(shipping_id) response = self.class.get("/shipping_methods/#{shipping_id}", :basic_auth => auth) if response["error"] raise ShippingMethodException.new(response["error"]["message"]) end response["shipping_method"] end
list()
click to toggle source
# File lib/sendcloud/shipping_method.rb, line 5 def list response = self.class.get("/shipping_methods", :basic_auth => auth) response["shipping_methods"] end