Class: Boldsign::Resources::Brand

Inherits:
Boldsign::Resource show all
Defined in:
lib/boldsign/resources/brand.rb

Overview

Brand-customization endpoints (‘/v1/brand/*`).

Instance Method Summary collapse

Methods inherited from Boldsign::Resource

#initialize

Constructor Details

This class inherits a constructor from Boldsign::Resource

Instance Method Details

#create(body, **params) ⇒ Object



8
# File 'lib/boldsign/resources/brand.rb', line 8

def create(body, **params);  @client.post("/v1/brand/create", body: body, params: params); end

#delete(brand_id) ⇒ Object



10
# File 'lib/boldsign/resources/brand.rb', line 10

def delete(brand_id);        @client.delete("/v1/brand/delete", brandId: brand_id); end

#edit(brand_id, body) ⇒ Object



9
# File 'lib/boldsign/resources/brand.rb', line 9

def edit(brand_id, body);    @client.post("/v1/brand/edit", body: body, params: { brandId: brand_id }); end

#get(brand_id) ⇒ Object



7
# File 'lib/boldsign/resources/brand.rb', line 7

def get(brand_id);   @client.get("/v1/brand/get", brandId: brand_id); end

#list(**params) ⇒ Object



6
# File 'lib/boldsign/resources/brand.rb', line 6

def list(**params);  @client.get("/v1/brand/list", params); end

#reset_default(brand_id) ⇒ Object



11
# File 'lib/boldsign/resources/brand.rb', line 11

def reset_default(brand_id); @client.post("/v1/brand/resetdefault", params: { brandId: brand_id }); end