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

Version Path
easypost-4.13.1 lib/easypost/brand.rb
easypost-4.13.0 lib/easypost/brand.rb
easypost-4.12.0 lib/easypost/brand.rb
easypost-4.11.0 lib/easypost/brand.rb
easypost-4.10.0 lib/easypost/brand.rb
easypost-4.9.0 lib/easypost/brand.rb
easypost-4.8.1 lib/easypost/brand.rb
easypost-4.8.0 lib/easypost/brand.rb
easypost-4.7.1 lib/easypost/brand.rb
easypost-4.7.0 lib/easypost/brand.rb
easypost-4.6.0 lib/easypost/brand.rb
easypost-4.5.0 lib/easypost/brand.rb
easypost-4.4.0 lib/easypost/brand.rb
easypost-4.3.0 lib/easypost/brand.rb
easypost-4.2.1 lib/easypost/brand.rb
easypost-4.2.0 lib/easypost/brand.rb
easypost-4.1.2 lib/easypost/brand.rb
easypost-4.1.1 lib/easypost/brand.rb
easypost-4.1.0 lib/easypost/brand.rb
easypost-4.0.0 lib/easypost/brand.rb