Class: Inthegra::Line

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

#circularBoolean (readonly)

Returns if is a circular line.

Returns:

  • (Boolean)

    if is a circular line



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

def circular
  @circular
end

#codeString (readonly)

Returns code of identification.

Returns:

  • (String)

    code of identification



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

def code
  @code
end

#first_stopString (readonly)

Returns where the line starts.

Returns:

  • (String)

    where the line starts



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

def first_stop
  @first_stop
end

#last_stopString (readonly)

Returns where the line stops.

Returns:

  • (String)

    where the line stops



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

def last_stop
  @last_stop
end

#nameString (readonly)

Returns line name.

Returns:

  • (String)

    line name



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

def name
  @name
end