Class: Protons8::Couch::CouchResponse::PutPostDelete

Inherits:
BaseResponse
  • Object
show all
Defined in:
lib/protoncouch.rb

Overview

End of View

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

#idObject



179
180
181
# File 'lib/protoncouch.rb', line 179

def id
	@hash['id']
end

#ok?Boolean

Returns:

  • (Boolean)


187
188
189
# File 'lib/protoncouch.rb', line 187

def ok?
	@hash['ok'] || false
end

#revObject



183
184
185
# File 'lib/protoncouch.rb', line 183

def rev
	@hash['rev']
end