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