Class: Dry::Credentials::YAML::Query
- Inherits:
-
Object
- Object
- Dry::Credentials::YAML::Query
- Defined in:
- lib/dry/credentials/yaml.rb
Instance Method Summary collapse
-
#initialize(hash) ⇒ Query
constructor
A new instance of Query.
-
#to_h ⇒ Hash
Get all credentials below the current node as a hash.
Constructor Details
#initialize(hash) ⇒ Query
Returns a new instance of Query.
27 28 29 30 |
# File 'lib/dry/credentials/yaml.rb', line 27 def initialize(hash) @hash = hash inject_into self end |
Instance Method Details
#to_h ⇒ Hash
Get all credentials below the current node as a hash.
35 36 37 |
# File 'lib/dry/credentials/yaml.rb', line 35 def to_h @hash end |