Class: XRBP::Model::Gateway
- Extended by:
- Base::ClassMethods
- Defined in:
- lib/xrbp/model/gateway.rb
Instance Attribute Summary
Attributes included from Base::ClassMethods
Attributes inherited from Base
Class Method Summary collapse
-
.all(opts = {}) ⇒ Object
Retrieve list of gateways provided WebClient::Connection.
Methods included from Base::ClassMethods
Methods inherited from Base
#full_opts, #initialize, #set_opts
Constructor Details
This class inherits a constructor from XRBP::Model::Base
Class Method Details
.all(opts = {}) ⇒ Object
Retrieve list of gateways provided WebClient::Connection.
13 14 15 16 17 18 19 20 21 |
# File 'lib/xrbp/model/gateway.rb', line 13 def self.all(opts={}) set_opts(opts) connection.url = "https://data.ripple.com/v2/gateways" connection.add_plugin :result_parser unless connection.plugin?(:result_parser) connection.add_plugin Parsers::Gateway unless connection.plugin?(Parsers::Gateway) connection.perform end |