Class: Metlinkr::Step
- Inherits:
-
Object
- Object
- Metlinkr::Step
- Defined in:
- lib/metlinkr/step.rb
Instance Attribute Summary collapse
-
#arrival_time ⇒ Object
readonly
Returns the value of attribute arrival_time.
-
#departure_time ⇒ Object
readonly
Returns the value of attribute departure_time.
-
#destination ⇒ Object
readonly
Returns the value of attribute destination.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
-
#route ⇒ Object
readonly
Returns the value of attribute route.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#arrival_time ⇒ Object (readonly)
Returns the value of attribute arrival_time.
3 4 5 |
# File 'lib/metlinkr/step.rb', line 3 def arrival_time @arrival_time end |
#departure_time ⇒ Object (readonly)
Returns the value of attribute departure_time.
3 4 5 |
# File 'lib/metlinkr/step.rb', line 3 def departure_time @departure_time end |
#destination ⇒ Object (readonly)
Returns the value of attribute destination.
3 4 5 |
# File 'lib/metlinkr/step.rb', line 3 def destination @destination end |
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
3 4 5 |
# File 'lib/metlinkr/step.rb', line 3 def duration @duration end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
3 4 5 |
# File 'lib/metlinkr/step.rb', line 3 def method @method end |
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
3 4 5 |
# File 'lib/metlinkr/step.rb', line 3 def origin @origin end |
#route ⇒ Object (readonly)
Returns the value of attribute route.
3 4 5 |
# File 'lib/metlinkr/step.rb', line 3 def route @route end |
Class Method Details
.parse(row_set) ⇒ Object
5 6 7 8 |
# File 'lib/metlinkr/step.rb', line 5 def self.parse(row_set) step = new step.parse(row_set) end |
Instance Method Details
#parse(row_set) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/metlinkr/step.rb', line 10 def parse(row_set) @row_set = row_set parse_method parse_origin parse_destination parse_route parse_departure_time parse_arrival_time parse_duration @row_set = nil self end |