Device.request_location? Method
Posted: 14 January 2010 11:29 AM   [ Ignore ]
Newbie
Rank
Total Posts:  13
Joined  2009-11-05

Can you explain the logic in “request_location?”  method of device object.

There are two conditions: gateway_device and gateway_device.respond_to?(‘submit_location_request’).
What’s the ‘submit_location_request’ is a hard code value?
In what scenario, the gateway_device will be ‘submit_location_request’ ?

Profile
 
 
Posted: 21 January 2010 05:29 PM   [ Ignore ]   [ # 1 ]
Administrator
RankRankRankRank
Total Posts:  249
Joined  2008-12-18

This basically checks that the method “submit_location_request” exists. If it does then the location request will be submitted. I hope that makes sense.

Profile