Sha256: ad61fd202f1ca72cc3cfcc71c68546471e8e0c72fd2c67d4cf5576d78c210070
Contents?: true
Size: 1.21 KB
Versions: 8
Compression:
Stored size: 1.21 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>save (Collection)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre><span class="ruby-comment cmt"># File lib/oauth_active_resource/collection.rb, line 20</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">save</span> <span class="ruby-ivar">@connection</span>.<span class="ruby-identifier">put</span>(<span class="ruby-node">"#{@resource.class.site}#{@collection_uri}"</span>,<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">to_json</span>,{ <span class="ruby-value str">'Accept'</span>=<span class="ruby-operator">></span><span class="ruby-value str">'application/json'</span>, <span class="ruby-value str">'Content-Type'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'application/json'</span> }) <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
8 entries across 8 versions & 2 rubygems