class Awscr::Signer::Credentials

Overview

AWS access key and secret access key

credentials = Credentials.new("key", "secret")
credentials.to_s   # => "key:secret"
credentials.key    # => "key"
credentials.secret # => "secret"

Included Modules

Defined in:

awscr-signer/core/credentials.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(key : String, secret : String) #

[View source]

Instance Method Detail

def <=>(creds : Credentials) #

Compare two Credentials object, returns true if equal, false otherwise.


[View source]
def key : String #

The AWS access key


[View source]
def secret : String #

The AWS secret key


[View source]
def to_s(io : IO) #

Returns the object in a "key:secret" form


[View source]