Class: Tair::IncrResponse

Inherits:
Response show all
Defined in:
lib/tair/operation/incr.rb

Defined Under Namespace

Classes: Body

Instance Attribute Summary

Attributes inherited from Response

#body, #raw_text

Instance Method Summary collapse

Methods inherited from Response

#initialize

Constructor Details

This class inherits a constructor from Tair::Response

Instance Method Details

#countObject



61
62
63
# File 'lib/tair/operation/incr.rb', line 61

def count
  @count ||= decode.current_count.value
end

#decodeObject



65
66
67
# File 'lib/tair/operation/incr.rb', line 65

def decode
  Body.read(body)
end