Class: ActiveRecordMysqlRepl::Database::Associations::AnalyzedTable

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record_mysql_repl/database/association.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_toObject

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_manyObject

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_oneObject

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

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/active_record_mysql_repl/database/association.rb', line 7

def name
  @name
end