Class: Weese::Bus::Stop

Inherits:
Object
  • Object
show all
Defined in:
lib/weese/bus/stop.rb

Overview

A MetroBus stop.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ Stop

Create a Stop

Parameters:

  • id (Integer)

    WMATA Stop ID



17
18
19
# File 'lib/weese/bus/stop.rb', line 17

def initialize(id)
  @id = id
end

Instance Attribute Details

#idInteger

Returns The WMATA Stop ID of this Stop.

Returns:

  • (Integer)

    The WMATA Stop ID of this Stop



10
11
12
# File 'lib/weese/bus/stop.rb', line 10

def id
  @id
end