Class: MermaidRailsErd::ColumnInfo
- Inherits:
-
Object
- Object
- MermaidRailsErd::ColumnInfo
- Defined in:
- lib/mermaid_rails_erd/column_info.rb
Instance Attribute Summary collapse
-
#activerecord_type ⇒ Object
readonly
Returns the value of attribute activerecord_type.
-
#annotations ⇒ Object
readonly
Returns the value of attribute annotations.
-
#isNullable ⇒ Object
readonly
Returns the value of attribute isNullable.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#raw_sql_type ⇒ Object
readonly
Returns the value of attribute raw_sql_type.
Instance Method Summary collapse
-
#initialize(name, annotations = [], raw_sql_type = nil, activerecord_type = nil, isNullable = nil) ⇒ ColumnInfo
constructor
A new instance of ColumnInfo.
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_type ⇒ Object (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 |
#annotations ⇒ Object (readonly)
Returns the value of attribute annotations.
5 6 7 |
# File 'lib/mermaid_rails_erd/column_info.rb', line 5 def annotations @annotations end |
#isNullable ⇒ Object (readonly)
Returns the value of attribute isNullable.
5 6 7 |
# File 'lib/mermaid_rails_erd/column_info.rb', line 5 def isNullable @isNullable end |
#name ⇒ Object (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_type ⇒ Object (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 |