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


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

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