Class: MermaidRailsErd::ColumnInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/mermaid_rails_erd/column_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, annotations = [], raw_sql_type = nil, activerecord_type = nil, isNullable = nil) ⇒ ColumnInfo

Returns a new instance of ColumnInfo.



7
8
9
10
11
12
13
# File 'lib/mermaid_rails_erd/column_info.rb', line 7

def initialize(name, annotations = [], raw_sql_type = nil, activerecord_type = nil, isNullable = nil)
  @name = name
  @annotations = annotations
  @raw_sql_type = raw_sql_type
  @activerecord_type = activerecord_type
  @isNullable = isNullable
end

Instance Attribute Details

#activerecord_typeObject (readonly)

Returns the value of attribute activerecord_type.



5
6
7
# File 'lib/mermaid_rails_erd/column_info.rb', line 5

def activerecord_type
  @activerecord_type
end

#annotationsObject (readonly)

Returns the value of attribute annotations.



5
6
7
# File 'lib/mermaid_rails_erd/column_info.rb', line 5

def annotations
  @annotations
end

#isNullableObject (readonly)

Returns the value of attribute isNullable.



5
6
7
# File 'lib/mermaid_rails_erd/column_info.rb', line 5

def isNullable
  @isNullable
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/mermaid_rails_erd/column_info.rb', line 5

def name
  @name
end

#raw_sql_typeObject (readonly)

Returns the value of attribute raw_sql_type.



5
6
7
# File 'lib/mermaid_rails_erd/column_info.rb', line 5

def raw_sql_type
  @raw_sql_type
end