Class: Serwersms::Payments
- Inherits:
-
Object
- Object
- Serwersms::Payments
- Defined in:
- lib/library/payments.rb
Instance Method Summary collapse
- #index ⇒ Object
-
#initialize(obj) ⇒ Payments
constructor
A new instance of Payments.
- #invoice(id) ⇒ Object
- #view(id) ⇒ Object
Constructor Details
#initialize(obj) ⇒ Payments
Returns a new instance of Payments.
2 3 4 |
# File 'lib/library/payments.rb', line 2 def initialize(obj) @serwersms = obj end |
Instance Method Details
#index ⇒ Object
19 20 21 22 |
# File 'lib/library/payments.rb', line 19 def index() params = {} @serwersms.call('payments/index',params); end |
#invoice(id) ⇒ Object
49 50 51 52 53 |
# File 'lib/library/payments.rb', line 49 def invoice(id) params = {} params['id'] = id @serwersms.call('payments/invoice',params); end |
#view(id) ⇒ Object
37 38 39 40 41 |
# File 'lib/library/payments.rb', line 37 def view(id) params = {} params['id'] = id @serwersms.call('payments/view',params); end |