Skip to content

Instantly share code, notes, and snippets.

@jackdempsey
Created November 11, 2008 20:53
Show Gist options
  • Save jackdempsey/23964 to your computer and use it in GitHub Desktop.
Save jackdempsey/23964 to your computer and use it in GitHub Desktop.
>> Gist.all
=> []
>> Gist.create(:url => "test.com")
=> #<Gist id=9 name=nil url="test.com" updated_at=#<DateTime: 53023299251/21600,-5/24,2299161> created_at=#<DateTime: 53023299251/21600,-5/24,2299161>>
>> Gist.get(0)
=> nil
>> Gist.get("fuckup")
=> #<Gist id=9 name=nil url="test.com" updated_at=#<DateTime: 53023299251/21600,-5/24,2299161> created_at=#<DateTime: 53023299251/21600,-5/24,2299161>>
>> Gist.get("fuckup")
=> nil
>>
>> Gist.create(:url => "test.com")
=> #<Gist id=11 name=nil url="test.com" updated_at=#<DateTime: 23565911171/9600,-5/24,2299161> created_at=#<DateTime: 23565911171/9600,-5/24,2299161>>
>> Gist.get(11)
=> #<Gist id=11 name=nil url="test.com" updated_at=#<DateTime: 23565911171/9600,-5/24,2299161> created_at=#<DateTime: 23565911171/9600,-5/24,2299161>>
>> Gist.get('fuckup')
=> #<Gist id=11 name=nil url="test.com" updated_at=#<DateTime: 23565911171/9600,-5/24,2299161> created_at=#<DateTime: 23565911171/9600,-5/24,2299161>>
>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment