Module: Yarel::Base::ClassMethods

Defined in:
lib/yarel/base.rb

Instance Method Summary collapse

Instance Method Details

#allObject

Raises:



9
10
11
12
13
# File 'lib/yarel/base.rb', line 9

def all
  response = Connection.get(table.to_yql)
  raise Exception.new(response["error"]["description"]) if response["error"]
  [response["query"]["results"].first[1]].flatten
end