Class: AltaBikes::Station
- Inherits:
-
Object
- Object
- AltaBikes::Station
- Defined in:
- lib/alta_bikes/station.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#stats ⇒ Object
readonly
Returns the value of attribute stats.
Instance Method Summary collapse
-
#initialize(station_hash) ⇒ Station
constructor
A new instance of Station.
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
#details ⇒ Object (readonly)
Returns the value of attribute details.
4 5 6 |
# File 'lib/alta_bikes/station.rb', line 4 def details @details end |
#stats ⇒ Object (readonly)
Returns the value of attribute stats.
4 5 6 |
# File 'lib/alta_bikes/station.rb', line 4 def stats @stats end |