Class: Protons8::Couch::CouchResponse::Get
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- Protons8::Couch::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::Couch::CouchResponse::BaseResponse
Instance Method Details
#exists? ⇒ Boolean
151 152 153 |
# File 'lib/protoncouch.rb', line 151 def exists? @hash['_id'] || false end |
#id ⇒ Object
143 144 145 |
# File 'lib/protoncouch.rb', line 143 def id @hash['_id'] end |
#rev ⇒ Object
147 148 149 |
# File 'lib/protoncouch.rb', line 147 def rev @hash['_rev'] end |