Class: Gemical::Vault

Inherits:
String
  • Object
show all
Defined in:
lib/gemical/vault.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Vault

Constructor

Parameters:

  • with (Hash)

    “token” and “name” keys



7
8
9
10
# File 'lib/gemical/vault.rb', line 7

def initialize(hash)
  @token = hash["token"]
  super hash["name"]
end

Instance Attribute Details

#tokenObject (readonly)

Returns the value of attribute token.



3
4
5
# File 'lib/gemical/vault.rb', line 3

def token
  @token
end