Class: Transport::Service
- Inherits:
-
Object
- Object
- Transport::Service
- Defined in:
- lib/service.rb
Instance Attribute Summary collapse
-
#irregular ⇒ Object
readonly
Returns the value of attribute irregular.
-
#regular ⇒ Object
readonly
Returns the value of attribute regular.
Instance Method Summary collapse
-
#initialize(service) ⇒ Service
constructor
A new instance of Service.
Constructor Details
#initialize(service) ⇒ Service
Returns a new instance of Service.
9 10 11 12 |
# File 'lib/service.rb', line 9 def initialize(service) @regular = service['regular'] @irregular = service['irregular'] end |
Instance Attribute Details
#irregular ⇒ Object (readonly)
Returns the value of attribute irregular.
7 8 9 |
# File 'lib/service.rb', line 7 def irregular @irregular end |
#regular ⇒ Object (readonly)
Returns the value of attribute regular.
7 8 9 |
# File 'lib/service.rb', line 7 def regular @regular end |