Module: Terminal::Modules::UsageAndCredits

Includes:
Utils
Included in:
API
Defined in:
lib/terminal/modules/usage_and_credits.rb

Instance Method Summary collapse

Instance Method Details

#balanceHash

Get the current balance of your account

Returns:

  • (Hash)

    of balance as a key

See Also:

Authentication:

  • Requires user_token and access_token



13
14
15
16
17
# File 'lib/terminal/modules/usage_and_credits.rb', line 13

def balance
  options = {}
  options[:auth] = true
  perform(:post, 'balance', options)
end

#burn_estimatesHash

Get a summary of the chargers to your account, based on each Terminal instance to you have provisions

Returns:

  • (Hash)

    of burn estimates

See Also:

Authentication:

  • Requires user_token and access_token



47
48
49
50
51
# File 'lib/terminal/modules/usage_and_credits.rb', line 47

def burn_estimates
  options = {}
  options[:auth] = true
  perform(:post, 'burn_estimates', options)
end

#burn_historyHash

Get a history of charges to your account balance

Returns:

  • (Hash)

    of history of account balance

See Also:

Authentication:

  • Requires user_token and access_token



24
25
26
27
28
# File 'lib/terminal/modules/usage_and_credits.rb', line 24

def burn_history
  options = {}
  options[:auth] = true
  perform(:post, 'burn_history', options)
end

#burn_stateHash

Get a summary of current active charges to your account balance

Returns:

  • (Hash)

    of current account balance

See Also:

Authentication:

  • Requires user_token and access_token



35
36
37
38
39
# File 'lib/terminal/modules/usage_and_credits.rb', line 35

def burn_state
  options = {}
  options[:auth] = true
  perform(:post, 'burn_state', options)
end