Class: SequencescapeExcel::Column::ArgumentBuilder
- Inherits:
-
Object
- Object
- SequencescapeExcel::Column::ArgumentBuilder
- Defined in:
- app/sequencescape_excel/sequencescape_excel/column.rb
Overview
Builds arguments
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
Instance Method Summary collapse
-
#initialize(args, key, default_conditional_formattings) ⇒ ArgumentBuilder
constructor
A new instance of ArgumentBuilder.
- #inspect ⇒ Object
- #to_h ⇒ Object
Constructor Details
#initialize(args, key, default_conditional_formattings) ⇒ ArgumentBuilder
Returns a new instance of ArgumentBuilder.
150 151 152 153 |
# File 'app/sequencescape_excel/sequencescape_excel/column.rb', line 150 def initialize(args, key, default_conditional_formattings) @arguments = args.merge(name: key) combine_conditional_formattings(default_conditional_formattings) end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
148 149 150 |
# File 'app/sequencescape_excel/sequencescape_excel/column.rb', line 148 def arguments @arguments end |
Instance Method Details
#inspect ⇒ Object
159 160 161 162 163 |
# File 'app/sequencescape_excel/sequencescape_excel/column.rb', line 159 def inspect "<#{self.class}: @name=#{name}, @updates=#{updates}, @heading=#{heading}, @number=#{number}, @type=#{type}, " \ "@validation#{validation}, @value=#{value}, @unlocked=#{unlocked}, " \ "@conditional_formattings=#{conditional_formattings}, @attribute=#{attribute}, @range=#{range}>" end |
#to_h ⇒ Object
155 156 157 |
# File 'app/sequencescape_excel/sequencescape_excel/column.rb', line 155 def to_h arguments end |