Sha256: e5065a1c4d0b3ab67b291a0a4499843d031b3bf0d80e15703437dab8d4034be0

Contents?: true

Size: 305 Bytes

Versions: 1

Compression:

Stored size: 305 Bytes

Contents

module Evrythng
  module Authenticatable

    # Credentials hash
    #
    # @return [Hash]
    def credentials
      {
        :token => token
      }
    end

    # Check whether credentials are present
    #
    # @return [Boolean]
    def credentials?
      credentials.values.all?
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
evrythng-0.1.0 lib/evrythng/authenticatable.rb