Class: Protons8::ProtonCouch::CouchResponse::Get
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- Protons8::ProtonCouch::CouchResponse::Get
- Defined in:
- lib/protoncouch.rb
Overview
End of BaseResponse
Instance Method Summary collapse
Methods inherited from BaseResponse
#attachment, #attachments, #conflict?, #error?, #error_name, #initialize, #no_error?, #not_found?, #raw, #reason, #unauth?
Constructor Details
This class inherits a constructor from Protons8::ProtonCouch::CouchResponse::BaseResponse
Instance Method Details
#exists? ⇒ Boolean
152 153 154 |
# File 'lib/protoncouch.rb', line 152 def exists? @hash['_id'] || false end |
#id ⇒ Object
144 145 146 |
# File 'lib/protoncouch.rb', line 144 def id @hash['_id'] end |
#rev ⇒ Object
148 149 150 |
# File 'lib/protoncouch.rb', line 148 def rev @hash['_rev'] end |