Class: Boldsign::Resources::CustomField

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

Overview

Reusable custom-field endpoints (‘/v1/customField/*`).

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) ⇒ Object



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

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

#create_embedded_url(body) ⇒ Object



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

def create_embedded_url(body); @client.post("/v1/customField/createEmbeddedCustomFieldUrl", body: body); end

#delete(**params) ⇒ Object



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

def delete(**params);     @client.delete("/v1/customField/delete", params); end

#edit(body, **params) ⇒ Object



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

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

#list(**params) ⇒ Object



5
# File 'lib/boldsign/resources/custom_field.rb', line 5

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