examples/file_test.rb in ncmb-ruby-client-0.1.2 vs examples/file_test.rb in ncmb-ruby-client-0.1.3

- old
+ new

@@ -16,5 +16,15 @@ f.file = 'http://k.yimg.jp/images/top/sp2/cmn/logo-ns_d_131205.png' f.update() puts "Updated" f.delete() puts "Deleted" + +f = NCMB::NFile.new('http://mb.cloud.nifty.com/assets/images/logo.png') +f.acl.public('read', true) +f.acl.public('write', true) +f.fileName = "test.png" +f.save() +file = NCMB::NFile.new("test.png") +fp = open("test.png", "w") +fp.write(file.get) +fp.close