doc/Trackerific/UPS.html in trackerific-0.3.2 vs doc/Trackerific/UPS.html in trackerific-0.3.3
- old
+ new
@@ -91,11 +91,11 @@
<dt class="r1 last">Defined in:</dt>
- <dd class="r1 last">lib/ups.rb</dd>
+ <dd class="r1 last">lib/trackerific/services/ups.rb</dd>
</dl>
<div class="clear"></div>
<h2>Overview</h2><div class="docstring">
@@ -123,10 +123,67 @@
<h2>
+ Class Method Summary
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
+ </h2>
+
+ <ul class="summary">
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#package_id_matchers-class_method" title="package_id_matchers (class method)">+ (Regexp) <strong>package_id_matchers</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+ <span class="private note title">Private</span>
+
+
+ <span class="summary_desc"><div class='inline'><p>
+A regex that matches valid package identifiers for UPS package ids.
+</p>
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#required_options-class_method" title="required_options (class method)">+ (Array) <strong>required_options</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+ <span class="private note title">Private</span>
+
+
+ <span class="summary_desc"><div class='inline'><p>
+The required options for tracking a UPS package.
+</p>
+</div></span>
+
+</li>
+
+
+ </ul>
+
+ <h2>
Instance Method Summary
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
</h2>
<ul class="summary">
@@ -175,10 +232,140 @@
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="Base.html#initialize-instance_method" title="Trackerific::Base#initialize (method)">Trackerific::Base</a></span></p>
</div>
+ <div id="class_method_details" class="method_details_list">
+ <h2>Class Method Details</h2>
+
+
+ <div class="method_details first">
+ <p class="signature first" id="package_id_matchers-class_method">
+
+ + (<tt>Regexp</tt>) <strong>package_id_matchers</strong>
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p class="note private">
+ <strong>This method is part of a private API.</strong>
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
+</p>
+<p>
+A regex that matches valid package identifiers for UPS package ids
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+ <h3>Returns:</h3>
+<ul class="return">
+
+ <li>
+
+
+ <span class='type'>(<tt>Regexp</tt>)</span>
+
+
+
+ —
+ <div class='inline'><p>
+the regular expression
+</p>
+</div>
+
+ </li>
+
+</ul>
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+43
+44
+45</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/trackerific/services/ups.rb', line 43</span>
+
+<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id package_id_matchers'>package_id_matchers</span>
+ <span class='lbracket'>[</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^.Z</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^[HK].{10}$</span><span class='regexp_end'>/</span></span> <span class='rbracket'>]</span>
+<span class='kw'>end</span></pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="required_options-class_method">
+
+ + (<tt>Array</tt>) <strong>required_options</strong>
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p class="note private">
+ <strong>This method is part of a private API.</strong>
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
+</p>
+<p>
+The required options for tracking a UPS package
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+ <h3>Returns:</h3>
+<ul class="return">
+
+ <li>
+
+
+ <span class='type'>(<tt>Array</tt>)</span>
+
+
+
+ —
+ <div class='inline'><p>
+the required options for tracking a UPS package
+</p>
+</div>
+
+ </li>
+
+</ul>
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+49
+50
+51</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/trackerific/services/ups.rb', line 49</span>
+
+<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id required_options'>required_options</span>
+ <span class='lbracket'>[</span><span class='symbol'>:key</span><span class='comma'>,</span> <span class='symbol'>:user_id</span><span class='comma'>,</span> <span class='symbol'>:password</span><span class='rbracket'>]</span>
+<span class='kw'>end</span></pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ </div>
+
<div id="instance_method_details" class="method_details_list">
<h2>Instance Method Details</h2>
<div class="method_details first">
@@ -291,11 +478,11 @@
36
37
38</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ups.rb', line 25</span>
+ <pre class="code"><span class="info file"># File 'lib/trackerific/services/ups.rb', line 25</span>
<span class='kw'>def</span> <span class='id track_package'>track_package</span><span class='lparen'>(</span><span class='id package_id'>package_id</span><span class='rparen'>)</span>
<span class='kw'>super</span>
<span class='comment'># connect to UPS via HTTParty
</span> <span class='id http_response'>http_response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id class'>class</span><span class='period'>.</span><span class='id post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/Track</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:body</span> <span class='op'>=></span> <span class='id build_xml_request'>build_xml_request</span><span class='rparen'>)</span>
@@ -317,10 +504,10 @@
</div>
</div>
<div id="footer">
- Generated on Mon Jun 13 16:20:05 2011 by
+ Generated on Mon Jun 13 21:28:36 2011 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.7.1 (ruby-1.9.2).
</div>
</body>
\ No newline at end of file