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