Class: Zena::FoxyRelationsParser

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 = {}) ⇒ FoxyRelationsParser

Returns a new instance of FoxyRelationsParser.



719
720
721
722
# File 'lib/zena/foxy_parser.rb', line 719

def initialize(table_name, opts={})
  super
  @roles = opts[:roles].all_elements
end

Instance Attribute Details

#rolesObject (readonly)

Returns the value of attribute roles.



717
718
719
# File 'lib/zena/foxy_parser.rb', line 717

def roles
  @roles
end