Sha256: e5b99692c25c8763ebfcc12995fba27f922d2cd545803d9207638c41562504f6

Contents?: true

Size: 1.54 KB

Versions: 1

Compression:

Stored size: 1.54 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>read (Tumblr::Request)</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/tumblr/request.rb, line 3</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">options</span> = {})
      <span class="ruby-constant">Tumblr</span><span class="ruby-operator">::</span><span class="ruby-identifier">blog</span> <span class="ruby-operator">||=</span> <span class="ruby-value str">'staff'</span>
      <span class="ruby-identifier">response</span> = <span class="ruby-constant">HTTParty</span>.<span class="ruby-identifier">get</span>(<span class="ruby-node">&quot;http://#{Tumblr::blog}.tumblr.com/api/read/&quot;</span>, <span class="ruby-identifier">:query</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">options</span>)
      <span class="ruby-keyword kw">return</span>(<span class="ruby-identifier">response</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">raise_errors</span>(<span class="ruby-identifier">response</span>)
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jeffkreeftmeijer-tumblr-0.0.2 doc/classes/Tumblr/Request.src/M000014.html