Class: Protons8::ProtonCouch::CouchResponse::Get

Inherits:
BaseResponse
  • Object
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::ProtonCouch::CouchResponse::BaseResponse

Instance Method Details

#exists?Boolean

Returns:

  • (Boolean)


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

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

#idObject



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

def id
  @hash['_id']
end

#revObject



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

def rev
  @hash['_rev']
end