Class: Sovaa::JsonResponse

Inherits:
Hash
  • Object
show all
Defined in:
lib/sovaa/json_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json, etag) ⇒ JsonResponse

Returns a new instance of JsonResponse.



4
5
6
7
8
# File 'lib/sovaa/json_response.rb', line 4

def initialize(json, etag)
  super()
  self.merge!(json)
  @etag = etag
end

Instance Attribute Details

#etagObject (readonly)

Returns the value of attribute etag.



3
4
5
# File 'lib/sovaa/json_response.rb', line 3

def etag
  @etag
end