Class: Fiveruns::Tuneup::Panel

Inherits:
Object
  • Object
show all
Includes:
Templating
Defined in:
lib/fiveruns/tuneup/panel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Templating

#h, #to_html

Constructor Details

#initialize(run, allow_share = false) ⇒ Panel

Returns a new instance of Panel.



28
29
30
31
32
# File 'lib/fiveruns/tuneup/panel.rb', line 28

def initialize(run, allow_share = false)
  @run = run
  @root = run.data
  @allow_share = allow_share
end

Instance Attribute Details

#rootObject (readonly)

Returns the value of attribute root.



27
28
29
# File 'lib/fiveruns/tuneup/panel.rb', line 27

def root
  @root
end

#runObject (readonly)

Returns the value of attribute run.



27
28
29
# File 'lib/fiveruns/tuneup/panel.rb', line 27

def run
  @run
end

Instance Method Details

#allow_share?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/fiveruns/tuneup/panel.rb', line 34

def allow_share?
  @allow_share
end