Sha256: 2919f316dba975493d4bedbc4869609ece16b8838df4a3e015788d15fa0cb3e0
Contents?: true
Size: 508 Bytes
Versions: 5
Compression:
Stored size: 508 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 'TestClass' @todo = @todo.limit(20).count(1).skip(0) # @todo = @todo.where(testKey: "testValue") # puts "@todo[0] #{@todo[0]}" puts "@todo[0].name #{@todo[0].message}"
Version data entries
5 entries across 5 versions & 2 rubygems