Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Naming updates.

  • Loading branch information...
commit 8c06acb18a66adb7d445936592023e5cfa119c0f 1 parent e04f5c0
@Raynes authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.markdown
View
8 README.markdown
@@ -16,8 +16,8 @@ Here is some example usage:
68-245-171-115:~ anthony$ irb
ruby-1.9.2-p290 :001 > require 'rubyheap'
=> true
-ruby-1.9.2-p290 :002 > heap = Refheap::Refheap.new("Raynes", "REDACTED")
- => #<Refheap::Refheap:0x00000100c2c8f0 @base_params={:username=>"Raynes", :token=>"REDACTED"}>>
+ruby-1.9.2-p290 :002 > heap = Refheap::Paste.new("Raynes", "REDACTED")
+ => #<Refheap::Paste:0x00000100c2c8f0 @base_params={:username=>"Raynes", :token=>"REDACTED"}>>
ruby-1.9.2-p290 :003 > heap.create "(+ 3 3)", :language => "Clojure", :private => true
=> {"lines"=>1, "date"=>"2012-01-16T20:51:08.856Z", "paste-id"=>"4f148dbdd6c4b2b79af42567", "fork"=>nil, "language"=>"Clojure", "private"=>true, "url"=>"https://refheap.com/paste/4f148dbdd6c4b2b79af42567", "user"=>"raynes", "contents"=>"(+ 3 3)"}
ruby-1.9.2-p290 :004 > heap.edit "4f148dbdd6c4b2b79af42567", :language => "Scheme"
@@ -27,8 +27,8 @@ ruby-1.9.2-p290 :005 > heap.delete "4f148dbdd6c4b2b79af42567"
ruby-1.9.2-p290 :006 > heap.create "(+ 3 3)" => {"lines"=>1, "date"=>"2012-01-16T20:52:08.797Z", "paste-id"=>"147", "fork"=>nil, "language"=>"Plain Text", "private"=>false, "url"=>"https://refheap.com/paste/147", "user"=>"raynes", "contents"=>"(+ 3 3)"}
ruby-1.9.2-p290 :007 > heap.get 147
=> {"lines"=>1, "date"=>"2012-01-16T20:52:08.797Z", "paste-id"=>"147", "fork"=>nil, "language"=>"Plain Text", "private"=>false, "url"=>"https://refheap.com/paste/147", "user"=>"raynes", "contents"=>"(+ 3 3)"}
-ruby-1.9.2-p290 :002 > anon_heap = Refheap::Refheap.new()
- => #<Refheap::Refheap:0x00000100c75668 @base_params={}>>
+ruby-1.9.2-p290 :002 > anon_heap = Refheap::Paste.new()
+ => #<Refheap::Paste:0x00000100c75668 @base_params={}>>
ruby-1.9.2-p290 :003 > anon_heap.create "(+ 3 3)"
=> {"lines"=>1, "date"=>"2012-01-16T20:58:22.695Z", "paste-id"=>"150", "fork"=>nil, "language"=>"Plain Text", "private"=>false, "url"=>"https://refheap.com/paste/150", "user"=>nil, "contents"=>"(+ 3 3)"}
ruby-1.9.2-p290 :005 > heap.fork 150
Please sign in to comment.
Something went wrong with that request. Please try again.