Class: MonoMerchant::Invoice::Remove

Inherits:
ApiRequest show all
Defined in:
lib/mono-merchant/invoice/remove.rb

Overview

Invalidate invoice

Constant Summary

Constants inherited from ApiRequest

ApiRequest::API_URL, ApiRequest::DEFAULT_CURRENCY

Instance Attribute Summary collapse

Attributes inherited from ApiRequest

#errors, #type

Instance Method Summary collapse

Methods inherited from ApiRequest

#url

Constructor Details

#initialize(invoice_id) ⇒ Remove

Returns a new instance of Remove.



9
10
11
12
# File 'lib/mono-merchant/invoice/remove.rb', line 9

def initialize(invoice_id)
  @invoice_id = invoice_id
  super()
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class MonoMerchant::ApiRequest

Instance Attribute Details

#invoice_idObject (readonly)

Returns the value of attribute invoice_id.



7
8
9
# File 'lib/mono-merchant/invoice/remove.rb', line 7

def invoice_id
  @invoice_id
end