Method: ARIN::Base.parse_and_objectify
- Defined in:
- lib/arin-whois.rb
.parse_and_objectify(rootel, query) ⇒ Object
19 20 21 |
# File 'lib/arin-whois.rb', line 19 def self.parse_and_objectify(rootel, query) Hashie::Mash.new(JSON.parse(get_resource(rootel, query))[rootel]) end |