Class: Zena::FoxyNodesParser
- Inherits:
-
FoxyParser
- Object
- FoxyParser
- Zena::FoxyNodesParser
- Defined in:
- lib/zena/foxy_parser.rb
Instance Attribute Summary collapse
-
#roles ⇒ Object
readonly
Returns the value of attribute roles.
-
#versions ⇒ Object
readonly
Returns the value of attribute versions.
-
#zip_counter ⇒ Object
readonly
Returns the value of attribute zip_counter.
Attributes inherited from FoxyParser
#column_names, #defaults, #name, #site, #table
Instance Method Summary collapse
-
#initialize(table_name, opts = {}) ⇒ FoxyNodesParser
constructor
A new instance of FoxyNodesParser.
Methods inherited from FoxyParser
#all_elements, dump_fixtures, id, multi_site_id, multi_site_tables, new, o_new, parses, path_for_table, #path_for_table, prelude, records_to_yaml, #run, #sites
Constructor Details
#initialize(table_name, opts = {}) ⇒ FoxyNodesParser
Returns a new instance of FoxyNodesParser.
335 336 337 338 339 340 341 |
# File 'lib/zena/foxy_parser.rb', line 335 def initialize(table_name, opts = {}) super @roles = opts[:roles].all_elements @versions = opts[:versions].versions @zip_counter = {} @inline_versions = {} # sub file generated by 'v_...' attributes end |
Instance Attribute Details
#roles ⇒ Object (readonly)
Returns the value of attribute roles.
333 334 335 |
# File 'lib/zena/foxy_parser.rb', line 333 def roles @roles end |
#versions ⇒ Object (readonly)
Returns the value of attribute versions.
333 334 335 |
# File 'lib/zena/foxy_parser.rb', line 333 def versions @versions end |
#zip_counter ⇒ Object (readonly)
Returns the value of attribute zip_counter.
333 334 335 |
# File 'lib/zena/foxy_parser.rb', line 333 def zip_counter @zip_counter end |