Class: Kirico::Company
- Inherits:
-
Object
- Object
- Kirico::Company
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/kirico/models/company.rb
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Company
constructor
A new instance of Company.
- #to_csv ⇒ Object
Constructor Details
#initialize {|_self| ... } ⇒ Company
Returns a new instance of Company.
31 32 33 |
# File 'lib/kirico/models/company.rb', line 31 def initialize yield(self) if block_given? end |
Instance Method Details
#to_csv ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/kirico/models/company.rb', line 35 def to_csv [ area_code, office_code, office_number, zip_code1, zip_code2, address, name, owner_name, tel_number ].map { |attr| attr.to_s.encode('CP932') }.join(',') end |