Class: HBase::Response::BasicResponse

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

Instance Method Summary collapse

Constructor Details

#initialize(raw_data) ⇒ BasicResponse

Returns a new instance of BasicResponse.



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

def initialize(raw_data)
  @raw_data = raw_data
end

Instance Method Details

#parseObject



11
12
13
# File 'lib/hbase/response/basic_response.rb', line 11

def parse
  parse_content @raw_data
end

#verify_success(response) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/hbase/response/basic_response.rb', line 15

def verify_success(response)
  case response
  when Net::HTTPSuccess
    true
  else
    false
  end
end