Class: Unitpost::Resources::BrandKits
- 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
Constructor Details
This class inherits a constructor from Unitpost::Resources::Base
Instance Method Details
#get(id) ⇒ Object
333 334 335 |
# File 'lib/unitpost/resources.rb', line 333 def get(id) @http.request("GET", "/brand-kits/#{enc(id)}") end |
#list(name: nil) ⇒ Object
327 328 329 330 331 |
# File 'lib/unitpost/resources.rb', line 327 def list(name: nil) query = {} query[:name] = name unless name.nil? @http.request("GET", "/brand-kits", query: query.empty? ? nil : query) end |