Sha256: 2636f79330427a83015d77b02ba82a589b7fba75fd27c90894ad43045d89a3e5

Contents?: true

Size: 219 Bytes

Versions: 3

Compression:

Stored size: 219 Bytes

Contents

module CloudConnect
  module Authentication
    def authentication
      if token
        {:token => token}
      else
        {}
      end
    end

    def authenticated?
      !authentication.empty?
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cloud_connect-3.2.0 lib/cloud_connect/authentication.rb
cloud_connect-3.1.0 lib/cloud_connect/authentication.rb
cloud_connect-3.0.3 lib/cloud_connect/authentication.rb