Class: Inthegra::Vehicle

Inherits:
BaseModel show all
Defined in:
lib/inthegra/model/vehicle.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

#initialize

Constructor Details

This class inherits a constructor from Inthegra::BaseModel

Instance Attribute Details

#codeInteger (readonly)

Returns code of identification.

Returns:

  • (Integer)

    code of identification



5
6
7
# File 'lib/inthegra/model/vehicle.rb', line 5

def code
  @code
end

#hourTime (readonly)

Returns last data update.

Returns:

  • (Time)

    last data update



14
15
16
# File 'lib/inthegra/model/vehicle.rb', line 14

def hour
  @hour
end

#latString (readonly)

Returns current vehicle latitude.

Returns:

  • (String)

    current vehicle latitude



8
9
10
# File 'lib/inthegra/model/vehicle.rb', line 8

def lat
  @lat
end

#longString (readonly)

Returns current vehicle longitude.

Returns:

  • (String)

    current vehicle longitude



11
12
13
# File 'lib/inthegra/model/vehicle.rb', line 11

def long
  @long
end