Sha256: d39d0439989de3bd71962eda7255e84e60504610407fe9fdaca0db383c595677
Contents?: true
Size: 393 Bytes
Versions: 1
Compression:
Stored size: 393 Bytes
Contents
require 'e_stat/version' require 'e_stat/api' module EStat # Your code goes here... def self.find(stats_code) base_url = 'http://api.e-stat.go.jp/rest/2.0/app/json/' key = '5b2d9330be6bc9f0dd64515af255b3b0b2b90be0' p url = "#{base_url}getStatsList?appId=#{key}&statsCode=#{stats_code}" response = Faraday.get(url) attributes = JSON.parse(response.body) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
e_stat-0.0.1 | lib/e_stat.rb |