class Seek::SampleTemplates::Column
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
Attributes
contents[R]
name[R]
Public Class Methods
new(name, contents = [])
click to toggle source
# File lib/seek/sample_templates/column.rb, line 9 def initialize(name, contents = []) @name = name @contents = contents end
Public Instance Methods
as_json()
click to toggle source
# File lib/seek/sample_templates/column.rb, line 14 def as_json { @name => @contents } end