Module: Ivapi::Authentication
- Included in:
- Client
- Defined in:
- lib/ivapi/authentication.rb
Instance Method Summary collapse
Instance Method Details
#authenticated? ⇒ Boolean
13 14 15 |
# File 'lib/ivapi/authentication.rb', line 13 def authenticated? !authentication.empty? end |
#authentication ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/ivapi/authentication.rb', line 5 def authentication if @username && @password { nick: @username, password: @password } else {} end end |