Sha256: 09352dbaee6d51305901f22fcbaeef41031e6a3f08f10e53b0d1eeda7c6034a4

Contents?: true

Size: 375 Bytes

Versions: 13

Compression:

Stored size: 375 Bytes

Contents

module Cashstar
  # @private
  module Authentication
    private

    # Authentication hash
    #
    # @return [Hash]
    def authentication
      {
        :username => username,
        :password => password,
      }
    end

    # Check whether user is authenticated
    #
    # @return [Boolean]
    def authenticated?
      authentication.values.all?
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
cashstar-ruby-0.2.4 lib/cashstar/authentication.rb
cashstar-ruby-0.2.3 lib/cashstar/authentication.rb
cashstar-ruby-0.2.2 lib/cashstar/authentication.rb
cashstar-ruby-0.2.1 lib/cashstar/authentication.rb
cashstar-ruby-0.2.0 lib/cashstar/authentication.rb
cashstar-ruby-0.1.8 lib/cashstar/authentication.rb
cashstar-ruby-0.1.7 lib/cashstar/authentication.rb
cashstar-0.1.5 lib/cashstar/authentication.rb
cashstar-0.1.4 lib/cashstar/authentication.rb
cashstar-0.1.3 lib/cashstar/authentication.rb
cashstar-0.1.2 lib/cashstar/authentication.rb
cashstar-0.1.1 lib/cashstar/authentication.rb
cashstar-0.1.0 lib/cashstar/authentication.rb