Sha256: 9102a922c36f6f5a14de737a85890bb785fa9c19fd1b2ce83a258559fd20df2f
Contents?: true
Size: 456 Bytes
Versions: 20
Compression:
Stored size: 456 Bytes
Contents
# frozen_string_literal: true # The Brand object allows you to customize the publicly-accessible html page that shows tracking details for every EasyPost tracker. class EasyPost::Brand < EasyPost::Resource # The url of the Brand object. def url if user_id.nil? || user_id.empty? raise EasyPost::Error, "Missing user_id: #{self.class} instance is missing user_id" end "#{::EasyPost::User.url}/#{CGI.escape(user_id)}/brand" end end
Version data entries
20 entries across 20 versions & 1 rubygems