Class: ActiveRecordMysqlRepl::Database::Associations::AnalyzedTable
- Inherits:
-
Object
- Object
- ActiveRecordMysqlRepl::Database::Associations::AnalyzedTable
- Defined in:
- lib/active_record_mysql_repl/database/association.rb
Instance Attribute Summary collapse
-
#belongs_to ⇒ Object
Returns the value of attribute belongs_to.
-
#has_many ⇒ Object
Returns the value of attribute has_many.
-
#has_one ⇒ Object
Returns the value of attribute has_one.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ AnalyzedTable
constructor
A new instance of AnalyzedTable.
Constructor Details
#initialize(name) ⇒ AnalyzedTable
8 9 10 11 12 13 |
# File 'lib/active_record_mysql_repl/database/association.rb', line 8 def initialize(name) @name = name @has_many = [] @has_one = [] @belongs_to = [] end |
Instance Attribute Details
#belongs_to ⇒ Object
Returns the value of attribute belongs_to.
7 8 9 |
# File 'lib/active_record_mysql_repl/database/association.rb', line 7 def belongs_to @belongs_to end |
#has_many ⇒ Object
Returns the value of attribute has_many.
7 8 9 |
# File 'lib/active_record_mysql_repl/database/association.rb', line 7 def has_many @has_many end |
#has_one ⇒ Object
Returns the value of attribute has_one.
7 8 9 |
# File 'lib/active_record_mysql_repl/database/association.rb', line 7 def has_one @has_one end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/active_record_mysql_repl/database/association.rb', line 7 def name @name end |