lib/freelabster/cart.rb
def url(params = {})
      uri = URI("https://www.freelabster.com/dashboard/order/cart")
      uri.query = URI.encode_www_form(params.merge(token: token))
      uri.to_s
    end
# Returns the user-facing URL for the cart
# Takes extra custom parameters you may want to add to the URL.
#
# Example:
#    cart.url
#    # => "https://www.freelabster.com/dashboard/order/?token=zaef..."
#    cart.url(foo: 1)
#    # => "https://www.freelabster.com/dashboard/order/?foo=1&token=zaef..."
Returns the user-facing URL for the cart
Takes extra custom parameters you may want to add to the URL.


Returns the user - facing URL for the cart Takes extra custom parameters you may want to add to the URL .
def url(params = {})
      uri = URI("https://www.freelabster.com/dashboard/order/cart")
      uri.query = URI.encode_www_form(params.merge(token: token))
      uri.to_s
    end
def url ( params = { } ) uri = URI ( "https://www.freelabster.com/dashboard/order/cart" ) uri . query = URI . encode_www_form ( params . merge ( token : token ) ) uri . to_s end
Returns the user-facing URL for the cart
Takes extra custom parameters you may want to add to the URL.
Returns the user - facing URL for the cart Takes extra custom parameters you may want to add to the URL .
params