Class: Recharge::PayMethod

Inherits:
Object
  • Object
show all
Includes:
HappyMapper
Defined in:
lib/recharge/paymethod.rb

Class Method Summary collapse

Class Method Details

.create(attributes = {}, apiKey = nil) ⇒ Object



15
16
17
18
# File 'lib/recharge/paymethod.rb', line 15

def self.create (attributes = {}, apiKey=nil)
  responseXML = Recharge::Base.post('paymethods', attributes, apiKey)
  parse(responseXML.to_s)
end

.destroy(id, apiKey = nil) ⇒ Object



19
20
21
# File 'lib/recharge/paymethod.rb', line 19

def self.destroy (id, apiKey=nil)
  responseXML = Recharge::Base.delete('paymethods/'+id, apiKey)
end