Module: SmartCoin::ApiOperations::Create

Included in:
Charge, Token
Defined in:
lib/smartcoin/api_operations/create.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



11
12
13
# File 'lib/smartcoin/api_operations/create.rb', line 11

def self.included(base)
  base.extend(Create)
end

Instance Method Details

#create(params) ⇒ Object



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

def create(params)
  url = get_url
  method = :post
  response = api_request(url,method,params)
  create_from(response)
end