Class: Protons8::Couch::CouchResponse::Get

Inherits:
BaseResponse show all
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

Returns:

  • (Boolean)


151
152
153
# File 'lib/protoncouch.rb', line 151

def exists?
	@hash['_id'] || false
end

#idObject



143
144
145
# File 'lib/protoncouch.rb', line 143

def id
	@hash['_id']
end

#revObject



147
148
149
# File 'lib/protoncouch.rb', line 147

def rev
	@hash['_rev']
end