Class: Serwersms::Payments

Inherits:
Object
  • Object
show all
Defined in:
lib/library/payments.rb

Instance Method Summary collapse

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

#indexObject



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