Class: Transport::Service

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#irregularObject (readonly)

Returns the value of attribute irregular.



7
8
9
# File 'lib/service.rb', line 7

def irregular
  @irregular
end

#regularObject (readonly)

Returns the value of attribute regular.



7
8
9
# File 'lib/service.rb', line 7

def regular
  @regular
end