<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;p&gt;[[Home]] (English)&lt;/p&gt;
&lt;h1&gt;ruby-xurrency&lt;/h1&gt;
&lt;p&gt;ruby-xurrency &#12399; &lt;a href=&quot;http://xurrency.com/api&quot;&gt;&lt;span class=&quot;caps&quot;&gt;API&lt;/span&gt; xurrency&lt;/a&gt; &#12434; Ruby &#12434;&#20351;&#12387;&#12390;&#31777;&#21336;&#12395;&#25201;&#12358;&#12383;&#12417;&#12398;&#12521;&#12452;&#12502;&#12521;&#12522;&#12392;&#12484;&#12540;&#12523;&#12391;&#12377;&#12290;&lt;/p&gt;
&lt;h2&gt;&#12452;&#12531;&#12473;&#12488;&#12540;&#12523;&lt;/h2&gt;
&lt;pre&gt;&lt;code&gt;% sudo gem install xurrency&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;&#12484;&#12540;&#12523;&lt;/h2&gt;
&lt;h3&gt;&#36890;&#36008;&#22793;&#25563;&lt;/h3&gt;
&lt;pre&gt;
&lt;code&gt;
% xurrency 10000 jpy cny
697.0
(1 jpy = 0.0697 cny)
&lt;/code&gt;
&lt;/pre&gt;
&lt;h3&gt;&#36890;&#36008;&#12467;&#12540;&#12489;&#12398;&#19968;&#35239;&#12434;&#34920;&#31034;&lt;/h3&gt;
&lt;pre&gt;
&lt;code&gt;
% xurrency -l
ars, aud, bgn, brl, cad, chf, cny, cop, czk, dkk, eek, eur, gbp, hkd, hrk, huf, inr, isk,
jpy, krw, lkr, ltl, lvl, mxn, myr, nok, nzd, php, pln, ron, rub, sek, sgd, skk, thb, try,
twd, usd, vef, zar
&lt;/code&gt;
&lt;/pre&gt;
&lt;h2&gt;&#12521;&#12452;&#12502;&#12521;&#12522;&#12398;&#20351;&#12356;&#26041;&lt;/h2&gt;
&lt;pre&gt;
&lt;code&gt;
require &quot;rubygems&quot;
require &quot;xurrency&quot;

# initialize
xu = Xurrency.new

# &#36890;&#36008;&#22793;&#25563;
xu.value(10000, &quot;jpy&quot;, &quot;cny&quot;) # 10000 &#26085;&#26412;&#20870; &#8594; 697.0 &#20154;&#27665;&#20803;
xu.value(100, &quot;cny&quot;, &quot;jpy&quot;)   # 100 &#20154;&#27665;&#20803; &#8594; 1434.72 &#26085;&#26412;&#20870;

# &#12524;&#12540;&#12488;&#12398;&#21462;&#24471;
xu.values(&quot;jpy&quot;) # =&amp;gt; {&quot;cny&quot; =&amp;gt; 0.0697, ... }
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;Xurrency &#12395;&#12362;&#12369;&#12427;&#12513;&#12477;&#12483;&#12489;&#12398;&#32080;&#26524;&#12399;&#12461;&#12515;&#12483;&#12471;&#12517;&#12373;&#12428;&#12414;&#12377;&#12398;&#12391;&#12289;&#20108;&#22238;&#30446;&#20197;&#38477;&#12398;&#21628;&#12403;&#20986;&#12375;&#12399;&#39640;&#36895;&#12391;&#12377;&#12290;&lt;/p&gt;
&lt;p&gt;&#12418;&#12375;&#12461;&#12515;&#12483;&#12471;&#12517;&#12434;&#26356;&#26032;&#12375;&#12383;&#12356;&#22580;&#21512;&#12395;&#12399;&#27425;&#12398;&#12424;&#12358;&#12395; Xurrency#update &#12434;&#20351;&#12387;&#12390;&#19979;&#12373;&#12356;&#12290;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;
xu.update(:values, &quot;jpy&quot;)
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;&#12414;&#12383;&#12461;&#12515;&#12483;&#12471;&#12517;&#12373;&#12428;&#12390;&#27442;&#12375;&#12367;&#12394;&#12356;&#26178;&#12395;&#12399;&#12289;Xurrency::Request &#12434;&#20351;&#12387;&#12390;&#19979;&#12373;&#12356;&#12290;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;
Xurrency::Request.values(&quot;jpy&quot;)
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;&#35443;&#32048;&#12399; &lt;a href=&quot;http://xurrency.rubyforge.org/&quot;&gt;API&#25991;&#26360;&lt;/a&gt; &#12434;&#12372;&#35239;&#19979;&#12373;&#12356;&#12290;&lt;/p&gt;
&lt;h2&gt;Links&lt;/h2&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;http://xurrency.com&quot;&gt;Xurrency&lt;/a&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;a href=&quot;http://xurrency.com/api&quot;&gt;Xurrency &lt;span class=&quot;caps&quot;&gt;API&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=&quot;http://xurrency.com/license&quot;&gt;License&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;&lt;/li&gt;
	&lt;li&gt;ruby-xurrency
	&lt;ul&gt;
		&lt;li&gt;&lt;a href=&quot;http://rubyforge.org/projects/xurrency/&quot;&gt;RubyForge&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&#12524;&#12509;&#12472;&#12488;&#12522;: &lt;a href=&quot;http://github.com/keita/ruby-xurrency/tree/master&quot;&gt;http://github.com/keita/ruby-xurrency/tree/master&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=&quot;http://xurrency.rubyforge.org/&quot;&gt;API&#25991;&#26360;&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&#20316;&#32773;&lt;/h2&gt;
&lt;p&gt;&#23665;&#21475; &#24950;&#22826; &amp;lt;keita.yamaguchi@gmail.com&amp;gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;http://github.com/keita&quot;&gt;GitHub user profile&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://d.hatena.ne.jp/keita_yamaguchi/&quot; title=&quot;&#12502;&#12525;&#12464;&quot;&gt;&#172;&#172;&#26085;&#24120;&#26085;&#35352;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</body>
  <created-at type="datetime">2008-04-15T09:05:52-07:00</created-at>
  <id type="integer">10945</id>
  <permalink>home-ja</permalink>
  <repository-id type="integer">9615</repository-id>
  <title>Home.ja</title>
  <updated-at type="datetime">2008-04-15T09:08:03-07:00</updated-at>
  <user-id type="integer">5487</user-id>
</wiki>
