Class: Inthegra::BusStop

Inherits:
BaseModel show all
Defined in:
lib/inthegra/model/bus_stop.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

#addressString (readonly)

Returns full address of bus stop.

Returns:

  • (String)

    full address of bus stop



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

def address
  @address
end

#codeInteger (readonly)

Returns code of identification.

Returns:

  • (Integer)

    code of identification



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

def code
  @code
end

#latString (readonly)

Returns latitude of the bus stop.

Returns:

  • (String)

    latitude of the bus stop



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

def lat
  @lat
end

#longString (readonly)

Returns longitude of the bus stop.

Returns:

  • (String)

    longitude of the bus stop



17
18
19
# File 'lib/inthegra/model/bus_stop.rb', line 17

def long
  @long
end

#nameString (readonly)

Returns where the bus stop is.

Returns:

  • (String)

    where the bus stop is



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

def name
  @name
end