Sha256: 0fa2b8175a5049934b7f01afd2d24586e2a3bd7042b954af4c316de40f041b38
Contents?: true
Size: 500 Bytes
Versions: 2
Compression:
Stored size: 500 Bytes
Contents
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $:.unshift(File.dirname(__FILE__)) require 'rubygems' require 'ncmb' require 'yaml' yaml = YAML.load_file(File.join(File.dirname(__FILE__), '..', 'setting.yml')) NCMB.initialize application_key: yaml['application_key'], client_key: yaml['client_key'] @todo = NCMB::DataStore.new 'Todo' @todo = @todo.limit(20).count(1).skip(0) # @todo = @todo.where(testKey: "testValue") # puts "@todo[0] #{@todo[0]}" puts "@todo[0].name #{@todo[0].name}"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ncmb-ruby-client-0.0.3 | examples/data_store.rb |
ncmb-ruby-client-0.0.2 | examples/data_store.rb |