Class: EY::ServicesAPI::Invoice

Inherits:
Object
  • Object
show all
Defined in:
lib/ey_services_api/invoice.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#connectionObject

Returns the value of attribute connection.



4
5
6
# File 'lib/ey_services_api/invoice.rb', line 4

def connection
  @connection
end

#statusObject

Returns the value of attribute status.



6
7
8
# File 'lib/ey_services_api/invoice.rb', line 6

def status
  @status
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/ey_services_api/invoice.rb', line 5

def url
  @url
end

Instance Method Details

#destroyObject



8
9
10
# File 'lib/ey_services_api/invoice.rb', line 8

def destroy
  connection.destroy_invoice(self.url)
end