Sha256: 35e6d0fb6cba76f479da44f23ff706759afe003124ca018a9ce8ad428f859800
Contents?: true
Size: 350 Bytes
Versions: 3
Compression:
Stored size: 350 Bytes
Contents
module Espago class ApiConnection class GetCharges def initialize(connection) @connection = connection end def request(params = {}) if params[:charge_id] @connection.get "charges/#{params[:charge_id]}" else @connection.get "charges", params end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
espago-0.0.9 | lib/espago/api_connection/get_charges.rb |
espago-0.0.7 | lib/espago/api_connection/get_charges.rb |
espago-0.0.6 | lib/espago/api_connection/get_charges.rb |