Class: TrafficWorkload

Inherits:
Workload
  • Object
show all
Defined in:
app/models/traffic_workload.rb

Instance Method Summary collapse

Methods inherited from Workload

#to_constraint

Instance Method Details

#as_json(options = {}) ⇒ Object


5
6
7
8
9
10
11
12
13
# File 'app/models/traffic_workload.rb', line 5

def as_json(options={})
  hash = {}
  hash[:id] = self.id
  hash[:visits_per_month] = self.visits_per_month
  hash[:requests_per_visit] = self.requests_per_visit
  hash[:request_size_kb] = self.request_size_kb
  hash[:ingredient_id] = self.ingredient_id
  hash
end