Sha256: 151164f6a860fdc10c062b58d0bd3f59097e2b7d414ab92215b20fa5ae172c1e
Contents?: true
Size: 486 Bytes
Versions: 2
Compression:
Stored size: 486 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'] Parent = NCMB::DataStore.new 'Parent' Child = NCMB::DataStore.new 'Child' child = Child.new(name: "Taro") parent = Parent.new(name: "Oya") parent.child = child parent.save
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ncmb-ruby-client-0.1.3 | examples/pointer_test.rb |
ncmb-ruby-client-0.1.2 | examples/pointer_test.rb |