class Cccode::Codes
database data
Attributes
country[RW]
country_code[RW]
currency[RW]
currency_code[RW]
Public Class Methods
new(country)
click to toggle source
Cccode::Codes.new
('Germany')
# File lib/cccode.rb, line 14 def initialize(country) record = Cccode::CountryCode.where(country: country).first if record @country = record.country @country_code = record.country_code @currency = record.currency @currency_code = record.currency_code end end