Class: Csv2schema::CSV
- Inherits:
-
Object
- Object
- Csv2schema::CSV
- Defined in:
- lib/csv2schema/csv.rb
Instance Method Summary collapse
-
#initialize(io) ⇒ CSV
constructor
A new instance of CSV.
Methods included from Schema
Methods included from Required
Methods included from Formats
Constructor Details
#initialize(io) ⇒ CSV
Returns a new instance of CSV.
7 8 9 10 11 12 |
# File 'lib/csv2schema/csv.rb', line 7 def initialize(io) @validator = Csv2schema::Validator.new(io) @column_headers = get_column_headers apply_formats apply_required end |