Module: Consumer
- Defined in:
- lib/consumer.rb,
lib/consumer/proxy.rb,
lib/consumer/version.rb
Defined Under Namespace
Classes: Proxy
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.get(url) ⇒ Object
8 9 10 11 12 |
# File 'lib/consumer.rb', line 8 def self.get(url) json = open(url).read hash = JSON.parse(json) Consumer::Proxy.new(hash) end |