Class: Zetto::Storage::ImpuretyData::Data::Response

Inherits:
Common::Response show all
Defined in:
lib/zetto/storage/impurety_data/data/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_stepObject (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_hashObject (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

#keyObject (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