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