Class: SerwerSMS::ClientToken
- Inherits:
-
Object
- Object
- SerwerSMS::ClientToken
- Includes:
- ResourcesMixin
- Defined in:
- lib/serwersms/client_token.rb
Instance Method Summary collapse
- #call(path, params = {}) ⇒ Object
-
#initialize(token:, **opts) ⇒ ClientToken
constructor
A new instance of ClientToken.
Methods included from ResourcesMixin
#accounts, #blacklist, #contacts, #error, #files, #groups, #messages, #phones, #premium, #senders, #stats, #subaccounts, #templates
Constructor Details
#initialize(token:, **opts) ⇒ ClientToken
Returns a new instance of ClientToken.
5 6 7 |
# File 'lib/serwersms/client_token.rb', line 5 def initialize(token:, **opts) @http = Http::HttpToken.new(token: token, **opts) end |
Instance Method Details
#call(path, params = {}) ⇒ Object
9 10 11 |
# File 'lib/serwersms/client_token.rb', line 9 def call(path, params = {}) @http.call(path, params) end |