Class: Serwersms::Phones

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

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ Phones

Returns a new instance of Phones.



2
3
4
# File 'lib/library/phones.rb', line 2

def initialize(obj)
    @serwersms = obj
end

Instance Method Details

#check(phone, id = nil) ⇒ Object



19
20
21
22
23
24
# File 'lib/library/phones.rb', line 19

def check(phone, id = nil)
  params = {}
  params['id']     = id
  params['phone']  = phone
  @serwersms.call('phones/check',params);
end

#test(phone) ⇒ Object



33
34
35
36
37
# File 'lib/library/phones.rb', line 33

def test(phone)
  params = {}
  params['phone']  = phone
  @serwersms.call('phones/test',params);
end