Sha256: aa1e65b6656ab5e566f8baca9bd1f812b7ba6659e4ec1db1770786451a2c7444
Contents?: true
Size: 229 Bytes
Versions: 2
Compression:
Stored size: 229 Bytes
Contents
class ParseWorldbankDocument include EMDextras::Chains::SynchronousStage def invoke(http) document_body = http.response json = JSON.parse document_body (json.size > 1 && json[1]) ? json[1].take(10) : [] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
em-dextras-0.4.0 | doc/samples/worldbank/parse_worldbank_document.rb |
em-dextras-0.3.0 | doc/samples/worldbank/parse_worldbank_document.rb |