Method: Oxidized::Source::HTTP#load
- Defined in:
- lib/oxidized/source/http.rb
#load(node_want = nil) ⇒ Object
34 35 36 37 38 39 40 41 42 |
# File 'lib/oxidized/source/http.rb', line 34 def load(node_want = nil) uri = URI.parse(@cfg.url) data = JSON.parse(read_http(uri, node_want)) node_data = data node_data = string_navigate_object(data, @cfg.hosts_location) if @cfg.hosts_location? node_data = pagination(data, node_want) if @cfg.pagination? transform_json(node_data) end |