class PlatformAPI::Credit

A credit represents value that will be used up before further charges are assigned to an account.

Public Class Methods

new(client) click to toggle source
# File lib/platform-api/client.rb, line 1654
def initialize(client)
  @client = client
end

Public Instance Methods

create(body = {}) click to toggle source

Create a new credit.

@param body: the object to pass as the request payload

# File lib/platform-api/client.rb, line 1661
def create(body = {})
  @client.credit.create(body)
end
info(credit_id) click to toggle source

Info for existing credit.

@param credit_id: unique identifier of credit

# File lib/platform-api/client.rb, line 1668
def info(credit_id)
  @client.credit.info(credit_id)
end
list() click to toggle source

List existing credits.

# File lib/platform-api/client.rb, line 1673
def list()
  @client.credit.list()
end