Class: Dyn::Traffic::QPSReport

Inherits:
Object
  • Object
show all
Defined in:
lib/dyn/traffic/qps_report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#csvObject

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_pathObject



15
16
17
# File 'lib/dyn/traffic/qps_report.rb', line 15

def resource_path
  "QPSReport"
end

#to_jsonObject



23
24
25
26
27
# File 'lib/dyn/traffic/qps_report.rb', line 23

def to_json
  {
    "csv" => @csv,
  }.to_json
end