Class: Serwersms::Phones
- Inherits:
-
Object
- Object
- Serwersms::Phones
- Defined in:
- lib/library/phones.rb
Instance Method Summary collapse
- #check(phone, id = nil) ⇒ Object
-
#initialize(obj) ⇒ Phones
constructor
A new instance of Phones.
- #test(phone) ⇒ Object
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 |