Class: Fiveruns::Tuneup::Step
- Defined in:
- lib/fiveruns/tuneup/step.rb
Defined Under Namespace
Classes: SQL
Instance Attribute Summary collapse
-
#depth ⇒ Object
writeonly
Sets the attribute depth.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#layer ⇒ Object
readonly
Returns the value of attribute layer.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#sql ⇒ Object
readonly
Returns the value of attribute sql.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
- #time ⇒ Object
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, layer = nil, file = nil, line = nil, sql = nil) ⇒ Step
constructor
A new instance of Step.
- #size ⇒ Object
Methods inherited from RootStep
#<<, #child_times_by_layer, #children, #children_with_disparity, #depth, framework_layers, layers, #leaf?, #leaves, #percentages_by_layer, #schemas
Constructor Details
#initialize(name, layer = nil, file = nil, line = nil, sql = nil) ⇒ Step
Returns a new instance of Step.
126 127 128 129 130 131 132 |
# File 'lib/fiveruns/tuneup/step.rb', line 126 def initialize(name, layer=nil, file=nil, line=nil, sql=nil) @name = name @layer = layer @file = file @line = line @sql = sql end |
Instance Attribute Details
#depth=(value) ⇒ Object (writeonly)
Sets the attribute depth
118 119 120 |
# File 'lib/fiveruns/tuneup/step.rb', line 118 def depth=(value) @depth = value end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
116 117 118 |
# File 'lib/fiveruns/tuneup/step.rb', line 116 def file @file end |
#layer ⇒ Object (readonly)
Returns the value of attribute layer.
116 117 118 |
# File 'lib/fiveruns/tuneup/step.rb', line 116 def layer @layer end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
116 117 118 |
# File 'lib/fiveruns/tuneup/step.rb', line 116 def line @line end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
116 117 118 |
# File 'lib/fiveruns/tuneup/step.rb', line 116 def name @name end |
#sql ⇒ Object (readonly)
Returns the value of attribute sql.
116 117 118 |
# File 'lib/fiveruns/tuneup/step.rb', line 116 def sql @sql end |
#table_name ⇒ Object
Returns the value of attribute table_name.
117 118 119 |
# File 'lib/fiveruns/tuneup/step.rb', line 117 def table_name @table_name end |
#time ⇒ Object
134 135 136 137 |
# File 'lib/fiveruns/tuneup/step.rb', line 134 def time # FIXME: rank hack to get around weird JRuby YAML bug @time.respond_to?(:value) ? @time.value.to_f : @time || 0 end |
Class Method Details
Instance Method Details
#size ⇒ Object
139 140 141 |
# File 'lib/fiveruns/tuneup/step.rb', line 139 def size children.map(&:size).sum + 1 end |