Module: SmartCoin::ApiOperations::Update

Included in:
Charge
Defined in:
lib/smartcoin/api_operations/update.rb

Instance Method Summary collapse

Instance Method Details

#update(smartcoin_object_id, url_sufix, params = nil) ⇒ Object



4
5
6
7
8
9
# File 'lib/smartcoin/api_operations/update.rb', line 4

def update(smartcoin_object_id, url_sufix, params=nil)
  url = "#{self.class.get_url()}/#{smartcoin_object_id}#{url_sufix}"
  method = :post
  response = api_request(url,method,params)
  reflesh_object(response)
end