Method: Riddle::Client#status

Defined in:
lib/riddle/client.rb

#statusObject



464
465
466
467
468
469
470
471
472
473
474
475
# File 'lib/riddle/client.rb', line 464

def status
  response = Response.new request(
    :status, Message.new
  )

  rows, cols = response.next_int, response.next_int

  (0...rows).inject({}) do |hash, row|
    hash[response.next.to_sym] = response.next
    hash
  end
end