Class: ConfConf::User

Inherits:
Struct
  • Object
show all
Defined in:
lib/conf_conf/user.rb

Defined Under Namespace

Classes: Config

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#private_keyObject

Returns the value of attribute private_key

Returns:

  • (Object)

    the current value of private_key



6
7
8
# File 'lib/conf_conf/user.rb', line 6

def private_key
  @private_key
end

#public_keyObject

Returns the value of attribute public_key

Returns:

  • (Object)

    the current value of public_key



6
7
8
# File 'lib/conf_conf/user.rb', line 6

def public_key
  @public_key
end

Class Method Details

.currentObject



8
9
10
11
# File 'lib/conf_conf/user.rb', line 8

def current
  config = Config.load
  User.new(config.public_key, config.private_key)
end