Class: AltaBikes::Station

Inherits:
Object
  • Object
show all
Defined in:
lib/alta_bikes/station.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(station_hash) ⇒ Station

Returns a new instance of Station.



6
7
8
# File 'lib/alta_bikes/station.rb', line 6

def initialize(station_hash)
  parse_station_hash(station_hash)
end

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



4
5
6
# File 'lib/alta_bikes/station.rb', line 4

def details
  @details
end

#statsObject (readonly)

Returns the value of attribute stats.



4
5
6
# File 'lib/alta_bikes/station.rb', line 4

def stats
  @stats
end