Class: GrafanaReporter::ERB::ReportJail
- Inherits:
-
Object
- Object
- GrafanaReporter::ERB::ReportJail
- 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
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#report ⇒ Object
readonly
Returns the value of attribute report.
Instance Method Summary collapse
-
#bind ⇒ Object
Binding to this object.
-
#initialize(report, attributes) ⇒ ReportJail
constructor
A new instance of ReportJail.
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
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
8 9 10 |
# File 'lib/grafana_reporter/erb/report_jail.rb', line 8 def attributes @attributes end |
#report ⇒ Object (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
#bind ⇒ Object
Returns binding to this object.
16 17 18 |
# File 'lib/grafana_reporter/erb/report_jail.rb', line 16 def bind binding end |