Skip to content

Instantly share code, notes, and snippets.

@nickmartini
Created July 15, 2009 16:45
Show Gist options
  • Save nickmartini/147832 to your computer and use it in GitHub Desktop.
Save nickmartini/147832 to your computer and use it in GitHub Desktop.
irb(main):009:0> a = RelaxDB.load "08ca2bae9630e997c1c8e3df11f29061"
=> #<Album:540155320,
_id: "08ca2bae9630e997c1c8e3df11f29061",
_rev: "18-3745543010",
created_at: Mon Jul 13 16:44:02 UTC 2009,
artist: "Lovage",
title: "Music to Make Love to Your Old Lady By",
released: 2001,
tracks: [
{"title"=>"Ladies Love Chest Rockwell", "length"=>"1:19"},
{"title"=>"Pit Stop (Take Me Home)", "length"=>"3:56"},
{"title"=>"Anger Management", "length"=>"4:17"},
{"title"=>"Everyone Has A Summer They Want to Remember", "length"=>"4:16"},
{"title"=>"To Catch A Thief", "length"=>"3:17"},
{"title"=>"Lies And Alibis", "length"=>"3:16"},
{"title"=>"Herbs, Good Hygiene & Socks", "length"=>"1:55"},
{"title"=>"Book Of The Month", "length"=>"4:28"},
{"title"=>"Lifeboat", "length"=>"4:45"},
{"title"=>"Strangers On A Train", "length"=>"4:36"},
{"title"=>"Lovage (Love That Lovage, Baby)", "length"=>"1:04"},
{"title"=>"Sex (I'm A)", "length"=>"6:19"},
{"title"=>"Koala's Lament", "length"=>"3:53"},
{"title"=>"Tea Time With Maseo", "length"=>"1:38"},
{"title"=>"Stroker Ace", "length"=>"4:29"},
{"title"=>"Archie & Veronica", "length"=>"6:05"}
]>
irb(main):010:0> a.tracks[0]
=> {"title"=>"Ladies Love Chest Rockwell", "length"=>"1:19"}
irb(main):011:0> a.tracks[0]["title"]
=> "Ladies Love Chest Rockwell"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment