Class: Columns::RawData

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

Overview

Public: A simple object to store raw data about a table.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, content) ⇒ RawData

Returns a new instance of RawData.



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

def initialize(name, content)
  @name = name
  @content = content
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



5
6
7
# File 'lib/columns/raw_data.rb', line 5

def content
  @content
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/columns/raw_data.rb', line 5

def name
  @name
end