class Lipseys::User
Public Class Methods
new(options = {})
click to toggle source
# File lib/lipseys/user.rb, line 4 def initialize(options = {}) requires!(options, :username, :password) @client = Lipseys::Client.new(username: options[:username], password: options[:password]) end
Public Instance Methods
authenticated?()
click to toggle source
# File lib/lipseys/user.rb, line 10 def authenticated? @client.access_token.present? end