Class: Gemical::Vault
- Inherits:
-
String
- Object
- String
- Gemical::Vault
- Defined in:
- lib/gemical/vault.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Vault
constructor
Constructor.
Constructor Details
#initialize(hash) ⇒ Vault
Constructor
7 8 9 10 |
# File 'lib/gemical/vault.rb', line 7 def initialize(hash) @token = hash["token"] super hash["name"] end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
3 4 5 |
# File 'lib/gemical/vault.rb', line 3 def token @token end |