Class: CpuConstraint

Inherits:
Constraint show all
Defined in:
app/models/cpu_constraint.rb

Instance Method Summary collapse

Methods inherited from Base

ma_accessor, ma_reader, ma_writer, #serialize_more_attributes

Instance Method Details

#as_json(options = {}) ⇒ Object


2
3
4
5
6
# File 'app/models/cpu_constraint.rb', line 2

def as_json(options={})
  hash = super
  hash[:min_cpus] = self.min_cpus
  hash
end