Module: ModelExtensions::Robot

Included in:
Robot
Defined in:
app/api/model_extensions/robot.rb

Instance Method Summary collapse

Instance Method Details

#json_for_propertiesObject


2
3
4
# File 'app/api/model_extensions/robot.rb', line 2

def json_for_properties
  Hash[robot_properties.map { |prop| [prop.key, prop.value] }]
end