Sha256: 41b8e5c36ee99502078f159ab5e0bad18d52c5b5bb19a114ca12971d8a6ff251
Contents?: true
Size: 605 Bytes
Versions: 6
Compression:
Stored size: 605 Bytes
Contents
$: << "~/Projects/Medea/lib" require 'rubygems' require 'medea' class Person < Medea::JasonObject end mikey = Person.new puts "state: #{mikey.jason_state}" mikey.name = "Michael" mikey.age = 21 mikey.location = {:longitude => -30.123213, :latitude => 130.1231458} puts mikey.jason_key puts mikey.to_json mikey.save! puts "state: #{mikey.jason_state}" puts "Changing name => Bob" mikey.name = "Bob" puts "state: #{mikey.jason_state}" puts mikey.to_json mikey.save! puts "state: #{mikey.jason_state}" puts "Enter a Person key to retrieve: " id = gets.strip person = Person.new id puts person.to_json
Version data entries
6 entries across 6 versions & 2 rubygems
Version | Path |
---|---|
medea-0.2.31 | lib/test.rb |
medea-0.2.30 | lib/test.rb |
medea-0.2.29 | lib/test.rb |
medea-0.2.28 | lib/test.rb |
Medea-0.2.27 | lib/test.rb |
Medea-0.2.26 | lib/test.rb |