class SynapsePayRest::Institutions
Wrapper class for /institutions endpoints
Attributes
client[RW]
@!attribute [rw] client
@return [SynapsePayRest::HTTPClient]
Public Class Methods
new(client)
click to toggle source
@param client [SynapsePayRest::HTTPClient]
# File lib/synapse_pay_rest/api/institutions.rb, line 10 def initialize(client) @client = client end
Public Instance Methods
get()
click to toggle source
Sends a GET request to /v3.1/institutions endpoint.
@raise [SynapsePayRest::Error] may return subclasses of error based on HTTP response from API
@return [Hash] API response
@todo Probably should use CGI or RestClient's param builder instead of rolling our own, probably error-prone and untested version github.com/rest-client/rest-client#usage-raw-url
# File lib/synapse_pay_rest/api/institutions.rb, line 25 def get() path = '/institutions' client.get(path) end