Class: Protons8::ProtonCouch::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::ProtonCouch::CouchResponse::BaseResponse

Instance Method Details

#idObject



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

def id
	@hash['id']
end

#ok?Boolean

Returns:

  • (Boolean)


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

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

#revObject



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

def rev
	@hash['rev']
end