Sha256: 6b3008e13c1f33937cb376d3b3c083aec9cfac4bc1eb452b3d1ae9caf21120c6

Contents?: true

Size: 431 Bytes

Versions: 12

Compression:

Stored size: 431 Bytes

Contents

module Seek
  module SampleTemplates
    # Describes a column in the template.
    # The name is the text put in the top row,
    # and contents will create a dropdown in the row below unless empty
    class Column
      attr_reader :name, :contents

      def initialize(name, contents = [])
        @name = name
        @contents = contents
      end

      def as_json
        { @name => @contents }
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
sample-template-generator-0.7.1 lib/seek/sample_templates/column.rb
sample-template-generator-0.7.0 lib/seek/sample_templates/column.rb
sample-template-generator-0.6.0 lib/seek/sample_templates/column.rb
sample-template-generator-0.5.1 lib/seek/sample_templates/column.rb
sample-template-generator-0.5.0 lib/seek/sample_templates/column.rb
sample-template-generator-0.4.1 lib/seek/sample_templates/column.rb
sample-template-generator-0.4.0 lib/seek/sample_templates/column.rb
sample-template-generator-0.3.3 lib/seek/sample_templates/column.rb
sample-template-generator-gem-0.3.2 lib/seek/sample_templates/column.rb
sample-template-generator-gem-0.3.1 lib/seek/sample_templates/column.rb
sample-template-generator-0.3.0 lib/seek/sample_templates/column.rb
sample-template-generator-gem-0.3.0 lib/seek/sample_templates/column.rb