Class: Zetto::Storage::ImpuretyData::Data::Response
- Inherits:
-
Common::Response
- Object
- Hash
- Common::Response
- Zetto::Storage::ImpuretyData::Data::Response
- Defined in:
- lib/zetto/storage/impurety_data/data/response.rb
Instance Attribute Summary collapse
-
#hash_step ⇒ Object
readonly
Returns the value of attribute hash_step.
-
#impurity_hash ⇒ Object
readonly
Returns the value of attribute impurity_hash.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(data) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(data) ⇒ Response
Returns a new instance of Response.
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/zetto/storage/impurety_data/data/response.rb', line 7 def initialize(data) @hash_step = data["hash_step"] @impurity_hash = data["impurity_hash"] @key = data["key"] self['hash_step'] = data["hash_step"] self['impurity_hash'] = data["impurity_hash"] self['key'] = data["key"] deep_freeze end |
Instance Attribute Details
#hash_step ⇒ Object (readonly)
Returns the value of attribute hash_step.
5 6 7 |
# File 'lib/zetto/storage/impurety_data/data/response.rb', line 5 def hash_step @hash_step end |
#impurity_hash ⇒ Object (readonly)
Returns the value of attribute impurity_hash.
5 6 7 |
# File 'lib/zetto/storage/impurety_data/data/response.rb', line 5 def impurity_hash @impurity_hash end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
5 6 7 |
# File 'lib/zetto/storage/impurety_data/data/response.rb', line 5 def key @key end |