Class: Zena::FoxyNodesParser

Inherits:
FoxyParser show all
Defined in:
lib/zena/foxy_parser.rb

Instance Attribute Summary collapse

Attributes inherited from FoxyParser

#column_names, #defaults, #name, #site, #table

Instance Method Summary collapse

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

#rolesObject (readonly)

Returns the value of attribute roles.



333
334
335
# File 'lib/zena/foxy_parser.rb', line 333

def roles
  @roles
end

#versionsObject (readonly)

Returns the value of attribute versions.



333
334
335
# File 'lib/zena/foxy_parser.rb', line 333

def versions
  @versions
end

#zip_counterObject (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