Class: Eco::API::Common::People::DefaultParsers::XLSParser
- Inherits:
-
Loaders::Parser
- Object
- Loaders::Base
- Loaders::CaseBase
- Loaders::Parser
- Eco::API::Common::People::DefaultParsers::XLSParser
- Defined in:
- lib/eco/api/common/people/default_parsers/xls_parser.rb
Instance Attribute Summary collapse
-
#already_required ⇒ Object
Returns the value of attribute already_required.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
Attributes included from Language::AuxiliarLogger
Instance Method Summary collapse
Methods inherited from Loaders::Parser
active_when_all, active_when_any, attribute, #attribute, dependencies, #initialize, parsing_phase, serializing_phase
Methods inherited from Loaders::CaseBase
Methods inherited from Loaders::Base
<=>, created_at, #initialize, set_created_at!
Methods included from ClassHelpers
#class_resolver, #descendants, #descendants?, #inheritable_attrs, #inheritable_class_vars, #inherited, #instance_variable_name, #new_class, #resolve_class, #to_constant
Methods included from Language::AuxiliarLogger
Constructor Details
This class inherits a constructor from Eco::API::Common::Loaders::Parser
Instance Attribute Details
#already_required ⇒ Object
Returns the value of attribute already_required.
4 5 6 |
# File 'lib/eco/api/common/people/default_parsers/xls_parser.rb', line 4 def already_required @already_required end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
5 6 7 |
# File 'lib/eco/api/common/people/default_parsers/xls_parser.rb', line 5 def file @file end |
Instance Method Details
#parser(file, _deps) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/eco/api/common/people/default_parsers/xls_parser.rb', line 7 def parser(file, _deps) @file = file rows.tap do |rws| @file = nil rws.each do |row| to_string!(row) end end end |
#serializer(_array_hash, _deps) ⇒ Object
17 18 19 |
# File 'lib/eco/api/common/people/default_parsers/xls_parser.rb', line 17 def serializer(_array_hash, _deps) raise "Not implemented. TODO: using axlsx or rubyXL gems. See: https://spin.atomicobject.com/2017/03/22/parsing-excel-files-ruby/" end |