Class: RailsDbBrowser::ConnectionKeeper::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_db_browser/connection_keeper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type, default, null) ⇒ Column

Returns a new instance of Column.



129
130
131
132
133
134
# File 'lib/rails_db_browser/connection_keeper.rb', line 129

def initialize(name, type, default, null)
  @name = name
  @type = type
  @default = default
  @null = null
end

Instance Attribute Details

#defaultObject

Returns the value of attribute default.



128
129
130
# File 'lib/rails_db_browser/connection_keeper.rb', line 128

def default
  @default
end

#nameObject

Returns the value of attribute name.



128
129
130
# File 'lib/rails_db_browser/connection_keeper.rb', line 128

def name
  @name
end

#nullObject

Returns the value of attribute null.



128
129
130
# File 'lib/rails_db_browser/connection_keeper.rb', line 128

def null
  @null
end

#typeObject

Returns the value of attribute type.



128
129
130
# File 'lib/rails_db_browser/connection_keeper.rb', line 128

def type
  @type
end