Class: Serwersms::Blacklist
- Inherits:
-
Object
- Object
- Serwersms::Blacklist
- Defined in:
- lib/library/blacklist.rb
Instance Method Summary collapse
- #add(phone) ⇒ Object
- #check(phone) ⇒ Object
- #delete(phone) ⇒ Object
- #index(phone = nil, params = {}) ⇒ Object
-
#initialize(obj) ⇒ Blacklist
constructor
A new instance of Blacklist.
Constructor Details
#initialize(obj) ⇒ Blacklist
Returns a new instance of Blacklist.
2 3 4 |
# File 'lib/library/blacklist.rb', line 2 def initialize(obj) @serwersms = obj end |
Instance Method Details
#add(phone) ⇒ Object
14 15 16 17 18 |
# File 'lib/library/blacklist.rb', line 14 def add(phone) params = {} params['phone'] = phone @serwersms.call('blacklist/add',params); end |
#check(phone) ⇒ Object
45 46 47 48 49 |
# File 'lib/library/blacklist.rb', line 45 def check(phone) params = {} params['phone'] = phone @serwersms.call('blacklist/check',params); end |
#delete(phone) ⇒ Object
57 58 59 60 61 |
# File 'lib/library/blacklist.rb', line 57 def delete(phone) params = {} params['phone'] = phone @serwersms.call('blacklist/delete',params); end |
#index(phone = nil, params = {}) ⇒ Object
34 35 36 37 |
# File 'lib/library/blacklist.rb', line 34 def index(phone = nil, params = {}) params['phone'] = phone @serwersms.call('blacklist/index',params); end |