Module: ModelExtensions::Robot

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

Overview

Included in Robot The intent of this file was to provide methods specific to the V1 API

Instance Method Summary collapse

Instance Method Details

#json_for_propertiesObject



5
6
7
# File 'app/api/model_extensions/robot.rb', line 5

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