module Cccode
Constants
- VERSION
Public Class Methods
get_all()
click to toggle source
# File lib/cccode.rb, line 32 def self.get_all Cccode::CountryCode.destroy_all s = Soap.new s.get_all end
get_countries()
click to toggle source
SOAP actions
# File lib/cccode.rb, line 40 def self.get_countries s = Soap.new s.countries end
get_country_code(country)
click to toggle source
Cccode.get_country_code
('Spain')
# File lib/cccode.rb, line 46 def self.get_country_code(country) s = Soap.new s.country_code(country) end
get_currency(country)
click to toggle source
# File lib/cccode.rb, line 51 def self.get_currency(country) s = Soap.new s.currency(country) end
get_currency_code(currency)
click to toggle source
# File lib/cccode.rb, line 56 def self.get_currency_code(currency) s = Soap.new s.currency_code(currency) end
reset()
click to toggle source
database actions
# File lib/cccode.rb, line 27 def self.reset Cccode::CountryCode.destroy_all end