Class: GrafanaReporter::ERB::ReportJail

Inherits:
Object
  • Object
show all
Defined in:
lib/grafana_reporter/erb/report_jail.rb

Overview

An instance of this class is used as binding for the ERB execution, i.e. this class contains everything known within the ERB template

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(report, attributes) ⇒ ReportJail

Returns a new instance of ReportJail.



10
11
12
13
# File 'lib/grafana_reporter/erb/report_jail.rb', line 10

def initialize(report, attributes)
  @report = report
  @attributes = attributes
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



8
9
10
# File 'lib/grafana_reporter/erb/report_jail.rb', line 8

def attributes
  @attributes
end

#reportObject (readonly)

Returns the value of attribute report.



8
9
10
# File 'lib/grafana_reporter/erb/report_jail.rb', line 8

def report
  @report
end

Instance Method Details

#bindObject

Returns binding to this object.

Returns:

  • binding to this object



16
17
18
# File 'lib/grafana_reporter/erb/report_jail.rb', line 16

def bind
  binding
end