Class: Sovaa::JsonResponse
- Inherits:
-
Hash
- Object
- Hash
- Sovaa::JsonResponse
- Defined in:
- lib/sovaa/json_response.rb
Instance Attribute Summary collapse
-
#etag ⇒ Object
readonly
Returns the value of attribute etag.
Instance Method Summary collapse
-
#initialize(json, etag) ⇒ JsonResponse
constructor
A new instance of JsonResponse.
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
#etag ⇒ Object (readonly)
Returns the value of attribute etag.
3 4 5 |
# File 'lib/sovaa/json_response.rb', line 3 def etag @etag end |