class EbanqApi::Templates

This class represents an templates functional of Ebanq REST Api.

Public Class Methods

new(client) click to toggle source

Declares an client instance.

# File lib/ebanq_api/blocks/templates.rb, line 13
def initialize(client)
  @client = client
end

Public Instance Methods

cft() click to toggle source

List of all request templates cft /api/v1/templates/cft

Examples

client.templates.cft
# File lib/ebanq_api/blocks/templates.rb, line 57
def cft
  @client.make_request :get, templates_path('cft')
end
create() click to toggle source

Create a Transfer Request template /api/v1/templates

Examples

client.templates.create

@return {}

# File lib/ebanq_api/blocks/templates.rb, line 78
def create
  @client.make_request :put, templates_path
end
delete(id) click to toggle source

Delete a Transfer Request Template /api/v1/templates/{id}

Attributes

  • id (required) - The id of the template to retrieve. (Number)

Examples

client.templates.delete(1)
# File lib/ebanq_api/blocks/templates.rb, line 92
def delete(id)
  @client.make_request :delete, templates_path(id)
end
list() click to toggle source

Get list of all templates /api/v1/templates

Examples

client.templates.list
# File lib/ebanq_api/blocks/templates.rb, line 23
def list
  @client.make_request :get, templates_path
end
owt() click to toggle source

List of all request templates owt /api/v1/templates/owt

Examples

client.templates.owt
# File lib/ebanq_api/blocks/templates.rb, line 67
def owt
  @client.make_request :get, templates_path('owt')
end
show(id) click to toggle source

Retrieve a Transfer Request template /api/v1/templates/{id}

Attributes

  • id (required) - The id of the template to retrieve. (Number)

Examples

client.templates.show(1)
# File lib/ebanq_api/blocks/templates.rb, line 37
def show(id)
  @client.make_request :get, templates_path(id)
end
tbu() click to toggle source

List of all request templates tbu /api/v1/templates/tbu

Examples

client.templates.tbu
# File lib/ebanq_api/blocks/templates.rb, line 47
def tbu
  @client.make_request :get, templates_path('tbu')
end