Class: Tair::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/tair/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ Response

Returns a new instance of Response.



7
8
9
# File 'lib/tair/response.rb', line 7

def initialize(text)
  @body = @raw_text = text
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



5
6
7
# File 'lib/tair/response.rb', line 5

def body
  @body
end

#raw_textObject (readonly)

Returns the value of attribute raw_text.



5
6
7
# File 'lib/tair/response.rb', line 5

def raw_text
  @raw_text
end

Instance Method Details

#decodeObject



12
13
14
# File 'lib/tair/response.rb', line 12

def decode
  # implement this method in sub classes
end