Class: Columns::RawData

Inherits:
Object
  • Object
show all
Defined in:
lib/columns/raw_data.rb

Overview

A simple object to store raw data about a table.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (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

#nameObject (readonly)

Public: Get the String table’s name.



7
8
9
# File 'lib/columns/raw_data.rb', line 7

def name
  @name
end