Sha256: 9619ddc5d46166e6e8858e3a363cf80f66dab9ef4e308c59d36cc5f799f26b2f

Contents?: true

Size: 177 Bytes

Versions: 6

Compression:

Stored size: 177 Bytes

Contents

module Lelylan
  module Authentication
    def authentication
      token ? { token: token } : {}
    end

    def authenticated?
      !authentication.empty?
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lelylan-rb-0.1.0 lib/lelylan/authentication.rb
lelylan-rb-0.0.5 lib/lelylan/authentication.rb
lelylan-rb-0.0.4 lib/lelylan/authentication.rb
lelylan-rb-0.0.3 lib/lelylan/authentication.rb
lelylan-rb-0.0.2 lib/lelylan/authentication.rb
lelylan-rb-0.0.1 lib/lelylan/authentication.rb