Class: SnapDeploy::Provider::Heroku::API::Invoice

Inherits:
Object
  • Object
show all
Defined in:
lib/snap_deploy/provider/heroku/api.rb

Overview

An invoice is an itemized bill of goods for an account which includes pricing and charges.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Invoice



925
926
927
# File 'lib/snap_deploy/provider/heroku/api.rb', line 925

def initialize(client)
  @client = client
end

Instance Method Details

#info(invoice_number) ⇒ Object

Info for existing invoice.



932
933
934
# File 'lib/snap_deploy/provider/heroku/api.rb', line 932

def info(invoice_number)
  @client.invoice.info(invoice_number)
end

#listObject

List existing invoices.



937
938
939
# File 'lib/snap_deploy/provider/heroku/api.rb', line 937

def list()
  @client.invoice.list()
end