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">&quot;#{@resource.class.site}#{@collection_uri}&quot;</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">&gt;</span><span class="ruby-value str">'application/json'</span>, <span class="ruby-value str">'Content-Type'</span> =<span class="ruby-operator">&gt;</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

Version Path
jwagener-oauth-active-resource-0.1.8 doc/classes/Collection.src/M000004.html
jwagener-oauth-active-resource-0.4.0 doc/classes/Collection.src/M000004.html
jwagener-oauth-active-resource-0.4.1 doc/classes/Collection.src/M000004.html
oauth-active-resource-0.4.7 doc/classes/Collection.src/M000004.html
oauth-active-resource-0.4.6 doc/classes/Collection.src/M000004.html
oauth-active-resource-0.4.5 doc/classes/Collection.src/M000004.html
oauth-active-resource-0.4.4 doc/classes/Collection.src/M000004.html
oauth-active-resource-0.4.2 doc/classes/Collection.src/M000004.html