Sha256: 1cb973ac2efa38263c1336f1b37e85a17f7b73aacfe4f84acb642b87ab043364

Contents?: true

Size: 549 Bytes

Versions: 3

Compression:

Stored size: 549 Bytes

Contents

module Columns

  # A simple object to store raw data about a table.
  class RawData

    # Public: Get the String table's name.
    attr_reader :name

    # Public: Get the String table's content, i.e column's names and
    #   types.
    attr_reader :content

    # 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`.
    def initialize(name, content)
      @name = name
      @content = content
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
columns-0.2.0 lib/columns/raw_data.rb
columns-0.1.1 lib/columns/raw_data.rb
columns-0.1.0 lib/columns/raw_data.rb