Class: Dyn::Traffic::QPSReport
- Inherits:
-
Object
- Object
- Dyn::Traffic::QPSReport
- Defined in:
- lib/dyn/traffic/qps_report.rb
Instance Attribute Summary collapse
-
#csv ⇒ Object
Returns the value of attribute csv.
Instance Method Summary collapse
- #create(csv) ⇒ Object
-
#initialize(dyn, csv) ⇒ QPSReport
constructor
A new instance of QPSReport.
- #resource_path ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(dyn, csv) ⇒ QPSReport
Returns a new instance of QPSReport.
6 7 8 9 |
# File 'lib/dyn/traffic/qps_report.rb', line 6 def initialize(dyn, csv) @dyn = dyn @csv = csv end |
Instance Attribute Details
#csv ⇒ Object
Returns the value of attribute csv.
4 5 6 |
# File 'lib/dyn/traffic/qps_report.rb', line 4 def csv @csv end |
Instance Method Details
#create(csv) ⇒ Object
19 20 21 |
# File 'lib/dyn/traffic/qps_report.rb', line 19 def create(csv) @dyn.create("#{resource_path}") end |
#resource_path ⇒ Object
15 16 17 |
# File 'lib/dyn/traffic/qps_report.rb', line 15 def resource_path "QPSReport" end |
#to_json ⇒ Object
23 24 25 26 27 |
# File 'lib/dyn/traffic/qps_report.rb', line 23 def to_json { "csv" => @csv, }.to_json end |