Class: Sheetah::Column
- Inherits:
-
Object
- Object
- Sheetah::Column
- Defined in:
- lib/sheetah/column.rb
Instance Attribute Summary collapse
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#header_pattern ⇒ Object
readonly
Returns the value of attribute header_pattern.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(key:, type:, index:, header:, header_pattern:, required:) ⇒ Column
constructor
A new instance of Column.
- #required? ⇒ Boolean
Constructor Details
#initialize(key:, type:, index:, header:, header_pattern:, required:) ⇒ Column
Returns a new instance of Column.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/sheetah/column.rb', line 5 def initialize( key:, type:, index:, header:, header_pattern:, required: ) @key = key @type = type @index = index @header = header @header_pattern = header_pattern @required = required end |
Instance Attribute Details
#header ⇒ Object (readonly)
Returns the value of attribute header.
21 22 23 |
# File 'lib/sheetah/column.rb', line 21 def header @header end |
#header_pattern ⇒ Object (readonly)
Returns the value of attribute header_pattern.
21 22 23 |
# File 'lib/sheetah/column.rb', line 21 def header_pattern @header_pattern end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
21 22 23 |
# File 'lib/sheetah/column.rb', line 21 def index @index end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
21 22 23 |
# File 'lib/sheetah/column.rb', line 21 def key @key end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
21 22 23 |
# File 'lib/sheetah/column.rb', line 21 def type @type end |
Instance Method Details
#required? ⇒ Boolean
27 28 29 |
# File 'lib/sheetah/column.rb', line 27 def required? @required end |