class Garcon::Crypto::Configuration

A Configuration instance

Attributes

password[RW]

@!attribute [rw] :password

@return [String] access the password for this instance.
salt[RW]

@!attribute [rw] :salt

@return [String] access the salt for this instance.

Public Class Methods

new(options = {}) { |self| ... } click to toggle source

Initialized a configuration instance

@return [undefined]

@api private

# File lib/garcon/utility/crypto.rb, line 118
def initialize(options = {})
  @password = options.fetch(:password, nil)
  @salt     = options.fetch(:salt,     nil)

  yield self if block_given?
end

Public Instance Methods

to_h() click to toggle source

@api private

# File lib/garcon/utility/crypto.rb, line 126
def to_h
  { password: password, salt: salt }.freeze
end