Class: Consul::Data
- Inherits:
-
Object
- Object
- Consul::Data
- Defined in:
- lib/consul/data.rb
Instance Method Summary collapse
- #flags ⇒ Object
-
#initialize(response_hash) ⇒ Data
constructor
A new instance of Data.
- #value ⇒ Object
Constructor Details
#initialize(response_hash) ⇒ Data
Returns a new instance of Data.
6 7 8 |
# File 'lib/consul/data.rb', line 6 def initialize(response_hash) @response = response_hash end |
Instance Method Details
#flags ⇒ Object
14 15 16 |
# File 'lib/consul/data.rb', line 14 def flags hash_map(__callee__) end |
#value ⇒ Object
10 11 12 |
# File 'lib/consul/data.rb', line 10 def value Base64.decode64(hash_map('Value')) end |