class RdbmsSampler::Dependency
Attributes
child_key[R]
child_schema_name[R]
child_table_name[R]
parent_key[R]
parent_schema[R]
parent_table[R]
value[R]
Public Class Methods
new(parent_schema, parent_table, parent_key, child_schema, child_table, child_key, value)
click to toggle source
# File lib/rdbms_sampler/dependency.rb, line 12 def initialize(parent_schema, parent_table, parent_key, child_schema, child_table, child_key, value) @parent_schema = parent_schema @parent_table = parent_table @parent_key = parent_key @child_schema_name = child_schema @child_table_name = child_table @child_key = child_key @value = value end
Public Instance Methods
eql?(other)
click to toggle source
# File lib/rdbms_sampler/dependency.rb, line 26 def eql? other identifier == other.identifier and child_key == other.child_key and value == other.value end
identifier()
click to toggle source
# File lib/rdbms_sampler/dependency.rb, line 22 def identifier "#{child_schema_name}.#{child_table_name}" end
to_s()
click to toggle source
# File lib/rdbms_sampler/dependency.rb, line 30 def to_s "reference from #{parent_schema}.#{parent_table}.#{parent_key} to #{identifier}[#{child_key}=#{value}]" end