Class: Columns::RawData
- Inherits:
-
Object
- Object
- Columns::RawData
- Defined in:
- lib/columns/raw_data.rb
Overview
A simple object to store raw data about a table.
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Public: Get the String table’s content, i.e column’s names and types.
-
#name ⇒ Object
readonly
Public: Get the String table’s name.
Instance Method Summary collapse
-
#initialize(name, content) ⇒ RawData
constructor
Public: Creates a new RawData.
Constructor Details
#initialize(name, content) ⇒ RawData
Public: Creates a new RawData.
name - A String table’s name. content - A String content related to the table, directly grabbed
from a `schema.rb`.
18 19 20 21 |
# File 'lib/columns/raw_data.rb', line 18 def initialize(name, content) @name = name @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Public: Get the String table’s content, i.e column’s names and
types.
11 12 13 |
# File 'lib/columns/raw_data.rb', line 11 def content @content end |
#name ⇒ Object (readonly)
Public: Get the String table’s name.
7 8 9 |
# File 'lib/columns/raw_data.rb', line 7 def name @name end |