Class: SequencescapeExcel::Column::ArgumentBuilder

Inherits:
Object
  • Object
show all
Defined in:
app/sequencescape_excel/sequencescape_excel/column.rb

Overview

Builds arguments

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argumentsObject (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

#inspectObject



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_hObject



155
156
157
# File 'app/sequencescape_excel/sequencescape_excel/column.rb', line 155

def to_h
  arguments
end