Class: Unitpost::Resources::BrandKits

Inherits:
Base
  • Object
show all
Defined in:
lib/unitpost/resources.rb

Overview

Read-only Brand Kit profiles (voice, colors, pinned /img/id graphics).

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Unitpost::Resources::Base

Instance Method Details

#get(id) ⇒ Object



343
344
345
# File 'lib/unitpost/resources.rb', line 343

def get(id)
  @http.request("GET", "/brand-kits/#{enc(id)}")
end

#list(name: nil) ⇒ Object



337
338
339
340
341
# File 'lib/unitpost/resources.rb', line 337

def list(name: nil)
  query = {}
  query[:name] = name unless name.nil?
  @http.request("GET", "/brand-kits", query: query.empty? ? nil : query)
end