class BuBus::Bus

Constants

URL

Attributes

call_name[RW]
coordinates[RW]
general_heading[RW]
id[RW]
lat[RW]
lng[RW]
speed[RW]

Public Class Methods

new(bus_hash) click to toggle source
# File lib/bubus/bus.rb, line 6
def initialize(bus_hash)
  @call_name = bus_hash["call_name"]
  @coordinates = bus_hash["coordinates"]
  @general_heading = bus_hash["general_heading"]
  @id = bus_hash["id"]
  @speed = bus_hash["speed"]
  @lat = bus_hash["lat"]
  @lng = bus_hash["lng"]
end