Class: XRBP::WebClient::Plugins::ResultParser

Inherits:
ResultParserBase show all
Defined in:
lib/xrbp/webclient/plugins/result_parser.rb

Overview

Plugin to automatically parse and convert webclient results, before returning.

Examples:

parse json

connection = WebClient::Connection.new
connection.add_plugin :result_parser

connection.parse_results do |res|
  JSON.parse(res)
end

connection.url = "https://data.ripple.com/v2/gateways"
connection.perform

Instance Attribute Summary

Attributes inherited from ResultParserBase

#parser

Attributes inherited from PluginBase

#connection

Method Summary

Methods inherited from ResultParserBase

#added, #parse_result

Methods inherited from PluginBase

#initialize

Constructor Details

This class inherits a constructor from XRBP::PluginBase