Sha256: de6c95412533495ff7b501827cec6fec8812ecfaed71c12625a7dd165ff66a80

Contents?: true

Size: 300 Bytes

Versions: 7

Compression:

Stored size: 300 Bytes

Contents

module Lipseys
  class User < Base

    def initialize(options = {})
      requires!(options, :username, :password)

      @client = Lipseys::Client.new(username: options[:username], password: options[:password])
    end

    def authenticated?
      @client.access_token.present?
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lipseys-6.2.1 lib/lipseys/user.rb
lipseys-6.2.0 lib/lipseys/user.rb
lipseys-6.1.1 lib/lipseys/user.rb
lipseys-6.1.0 lib/lipseys/user.rb
lipseys-6.0.2 lib/lipseys/user.rb
lipseys-6.0.1 lib/lipseys/user.rb
lipseys-6.0.0 lib/lipseys/user.rb