Class: TerminalLocation
- Inherits:
-
Object
- Object
- TerminalLocation
- Defined in:
- lib/response/location/TerminalLocation.rb
Instance Method Summary collapse
- #getAddress ⇒ Object
- #getCurrentLocation ⇒ Object
- #getErrorInformation ⇒ Object
- #getLocationRetrievalStatus ⇒ Object
-
#initialize ⇒ TerminalLocation
constructor
A new instance of TerminalLocation.
- #initializeJSON(jsondict) ⇒ Object
- #setAddress(address) ⇒ Object
- #setCurrentLocation(currentLocation) ⇒ Object
- #setErrorInformation(errorInformation) ⇒ Object
- #setLocationRetrievalStatus(locationRetrievalStatus) ⇒ Object
Constructor Details
#initialize ⇒ TerminalLocation
Returns a new instance of TerminalLocation.
6 7 8 9 10 11 |
# File 'lib/response/location/TerminalLocation.rb', line 6 def initialize @address=nil @currentLocation=nil @errorInformation=nil @locationRetrievalStatus=nil end |
Instance Method Details
#getAddress ⇒ Object
34 35 36 |
# File 'lib/response/location/TerminalLocation.rb', line 34 def getAddress @address end |
#getCurrentLocation ⇒ Object
42 43 44 |
# File 'lib/response/location/TerminalLocation.rb', line 42 def getCurrentLocation @currentLocation end |
#getErrorInformation ⇒ Object
50 51 52 |
# File 'lib/response/location/TerminalLocation.rb', line 50 def getErrorInformation @errorInformation end |
#getLocationRetrievalStatus ⇒ Object
58 59 60 |
# File 'lib/response/location/TerminalLocation.rb', line 58 def getLocationRetrievalStatus @locationRetrievalStatus end |
#initializeJSON(jsondict) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/response/location/TerminalLocation.rb', line 13 def initializeJSON(jsondict) @address=nil if (jsondict!=nil) && (jsondict.has_key?'address') && (jsondict['address']!=nil) @address=jsondict['address'] end @currentLocation=nil if (jsondict!=nil) && (jsondict.has_key?'currentLocation') && (jsondict['currentLocation']!=nil) then @currentLocation=CurrentLocation.new @currentLocation.initializeJSON(jsondict['currentLocation']) end @errorInformation=nil if (jsondict!=nil) && (jsondict.has_key?'errorInformation') && (jsondict['errorInformation']!=nil) then @errorInformation=ErrorInformation.new @errorInformation.initializeJSON(jsondict['errorInformation']) end @locationRetrievalStatus=nil if (jsondict!=nil) && (jsondict.has_key?'locationRetrievalStatus') && (jsondict['locationRetrievalStatus']!=nil) @locationRetrievalStatus=jsondict['locationRetrievalStatus'] end end |
#setAddress(address) ⇒ Object
38 39 40 |
# File 'lib/response/location/TerminalLocation.rb', line 38 def setAddress(address) @address=address end |
#setCurrentLocation(currentLocation) ⇒ Object
46 47 48 |
# File 'lib/response/location/TerminalLocation.rb', line 46 def setCurrentLocation(currentLocation) @currentLocation=currentLocation end |
#setErrorInformation(errorInformation) ⇒ Object
54 55 56 |
# File 'lib/response/location/TerminalLocation.rb', line 54 def setErrorInformation(errorInformation) @errorInformation=errorInformation end |
#setLocationRetrievalStatus(locationRetrievalStatus) ⇒ Object
62 63 64 |
# File 'lib/response/location/TerminalLocation.rb', line 62 def setLocationRetrievalStatus(locationRetrievalStatus) @locationRetrievalStatus=locationRetrievalStatus end |