Class: PgHaMigrations::DependentObjectsChecks::ObjectDependency

Inherits:
Struct
  • Object
show all
Defined in:
lib/pg_ha_migrations/dependent_objects_checks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dependent_nameObject

Returns the value of attribute dependent_name

Returns:

  • (Object)

    the current value of dependent_name



4
5
6
# File 'lib/pg_ha_migrations/dependent_objects_checks.rb', line 4

def dependent_name
  @dependent_name
end

#dependent_typeObject

Returns the value of attribute dependent_type

Returns:

  • (Object)

    the current value of dependent_type



4
5
6
# File 'lib/pg_ha_migrations/dependent_objects_checks.rb', line 4

def dependent_type
  @dependent_type
end

#owner_nameObject

Returns the value of attribute owner_name

Returns:

  • (Object)

    the current value of owner_name



4
5
6
# File 'lib/pg_ha_migrations/dependent_objects_checks.rb', line 4

def owner_name
  @owner_name
end

#owner_typeObject

Returns the value of attribute owner_type

Returns:

  • (Object)

    the current value of owner_type



4
5
6
# File 'lib/pg_ha_migrations/dependent_objects_checks.rb', line 4

def owner_type
  @owner_type
end

Instance Method Details

#error_textObject



5
6
7
# File 'lib/pg_ha_migrations/dependent_objects_checks.rb', line 5

def error_text
  "#{dependent_type} '#{dependent_name}' depends on #{owner_type} '#{owner_name}'"
end