module Smslist::Authentication
Public Instance Methods
authentication()
click to toggle source
# File lib/smslist/authentication.rb, line 3 def authentication if token {token: token} elsif login && password {login: login, password: password} else raise Smslist::UnauthorizedError.new('Access token, or login '\ 'and password are not initialized') end end