Class: Espago::ApiConnection::PostCharges

Inherits:
Object
  • Object
show all
Defined in:
lib/espago/api_connection/post_charges.rb

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ PostCharges

Returns a new instance of PostCharges.



4
5
6
# File 'lib/espago/api_connection/post_charges.rb', line 4

def initialize(connection)
  @connection = connection
end

Instance Method Details

#request(params = {}) ⇒ Object



8
9
10
# File 'lib/espago/api_connection/post_charges.rb', line 8

def request(params = {})
  @connection.post "charges", params
end