Class: SuperReceptionist::Notification
- Inherits:
-
Object
- Object
- SuperReceptionist::Notification
- Defined in:
- lib/super_receptionist/notification.rb
Instance Method Summary collapse
-
#initialize(super_receptionist) ⇒ Notification
constructor
A new instance of Notification.
- #list ⇒ Object
- #registor_number(options = {}) ⇒ Object
- #update(options = {}) ⇒ Object
Constructor Details
#initialize(super_receptionist) ⇒ Notification
Returns a new instance of Notification.
3 4 5 |
# File 'lib/super_receptionist/notification.rb', line 3 def initialize(super_receptionist) @super_receptionis = super_receptionist end |
Instance Method Details
#list ⇒ Object
7 8 9 |
# File 'lib/super_receptionist/notification.rb', line 7 def list SuperReceptionist.submit(:get, url) end |
#registor_number(options = {}) ⇒ Object
11 12 13 |
# File 'lib/super_receptionist/notification.rb', line 11 def registor_number( = {}) SuperReceptionist.submit(:post, url, ) end |
#update(options = {}) ⇒ Object
15 16 17 |
# File 'lib/super_receptionist/notification.rb', line 15 def update( = {}) SuperReceptionist.submit(:put, url, ) end |