Class: SchemaErd::Column

Inherits:
Data
  • Object
show all
Defined in:
lib/schema_erd.rb

Instance Attribute Summary collapse

Instance Attribute Details

#defaultObject (readonly)

Returns the value of attribute default

Returns:

  • (Object)

    the current value of default



15
16
17
# File 'lib/schema_erd.rb', line 15

def default
  @default
end

#foreign_key_toObject (readonly)

Returns the value of attribute foreign_key_to

Returns:

  • (Object)

    the current value of foreign_key_to



15
16
17
# File 'lib/schema_erd.rb', line 15

def foreign_key_to
  @foreign_key_to
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



15
16
17
# File 'lib/schema_erd.rb', line 15

def name
  @name
end

#nullableObject (readonly)

Returns the value of attribute nullable

Returns:

  • (Object)

    the current value of nullable



15
16
17
# File 'lib/schema_erd.rb', line 15

def nullable
  @nullable
end

#primary_keyObject (readonly)

Returns the value of attribute primary_key

Returns:

  • (Object)

    the current value of primary_key



15
16
17
# File 'lib/schema_erd.rb', line 15

def primary_key
  @primary_key
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



15
16
17
# File 'lib/schema_erd.rb', line 15

def type
  @type
end