Sha256: 2fb82d983ec4ac67d52c12558a27140d8a0bb2fe0ed0fd2c208e9960fcd44e4b

Contents?: true

Size: 694 Bytes

Versions: 4

Compression:

Stored size: 694 Bytes

Contents

Parse.init :application_id  => "your_application_id",
           :api_key         => "your_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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
parse-ruby-client-0.0.4 example.rb
parse-ruby-client-0.0.3 example.rb
parse-ruby-client-0.0.2 example.rb
parse-ruby-client-0.0.1 example.rb