Class: Zena::FoxyRelationsParser
- Inherits:
-
FoxyParser
- Object
- FoxyParser
- Zena::FoxyRelationsParser
- Defined in:
- lib/zena/foxy_parser.rb
Instance Attribute Summary collapse
-
#roles ⇒ Object
readonly
Returns the value of attribute roles.
Attributes inherited from FoxyParser
#column_names, #defaults, #name, #site, #table
Instance Method Summary collapse
-
#initialize(table_name, opts = {}) ⇒ FoxyRelationsParser
constructor
A new instance of FoxyRelationsParser.
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
#roles ⇒ Object (readonly)
Returns the value of attribute roles.
717 718 719 |
# File 'lib/zena/foxy_parser.rb', line 717 def roles @roles end |