Sha256: 60fc79ae36d3e9156611317f5c0677dc97389fbd8fb088d70fc5cde19b944993
Contents?: true
Size: 829 Bytes
Versions: 1
Compression:
Stored size: 829 Bytes
Contents
# -*- encoding : utf-8 -*- Parse.init :application_id => "your_application_id", :api_key => "your_REST_API_Key" profile = Parse::Object.new "Profile" profile["first_name"] = "John" profile["last_name"] = "Doe" profile["username"] = "jdoe" profile["email_address"] = "jdoe@fubar.com" profile["birthday"] = Parse::Date.new "1980-12-25" profile.save profile.increment "login_count" # Queries cls = "GameScore" (1..100).each { |i| score = Parse::Object.new cls score["score"] = i score.save } Parse::Query.new(cls) \ .greater_eq("score", 10) \ .less_eq("score", 20) \ .get Parse::Query.new(cls) \ .value_in("score", [10, 20, 30, 40]) \ .get # Pushes push = Parse::Push.new({ "alert"=> "I'm sending this push to all my app users!" }) push.save
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
parse-ruby-client-0.3.0 | example.rb |