Class: ScalingConstraint

Inherits:
Constraint show all
Defined in:
app/models/scaling_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/scaling_constraint.rb', line 2

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