Created
November 11, 2008 20:53
-
-
Save jackdempsey/23964 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> 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