Class: Smsapi::Server
- Inherits:
-
Object
- Object
- Smsapi::Server
- Defined in:
- lib/smsapi/server.rb,
lib/smsapi/server/connection.rb
Defined Under Namespace
Classes: Connection
Instance Method Summary collapse
-
#initialize(token) ⇒ Server
constructor
A new instance of Server.
- #sms(params = {}) ⇒ Object
- #user(params = {}) ⇒ Object
Constructor Details
#initialize(token) ⇒ Server
Returns a new instance of Server.
3 4 5 6 |
# File 'lib/smsapi/server.rb', line 3 def initialize(token) @token = token @connection = setup_connection end |