Class: FSR::Model::Enum

Inherits:
Object
  • Object
show all
Defined in:
lib/fsr/model/enum.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(offered_routes, supported_routes, order, pref, service, route) ⇒ Enum

Returns a new instance of Enum.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fsr/model/enum.rb', line 5

def initialize(offered_routes,
               supported_routes,
               order,
               pref,
               service,
               route)
  @offered_routes,
  @supported_routes,
  @order,
  @pref,
  @service,
  @route,
  = offered_routes, 
               supported_routes,
               order,
               pref,
               service,
               route
end

Instance Attribute Details

#offered_routesObject (readonly)

Returns the value of attribute offered_routes.



4
5
6
# File 'lib/fsr/model/enum.rb', line 4

def offered_routes
  @offered_routes
end

#orderObject (readonly)

Returns the value of attribute order.



4
5
6
# File 'lib/fsr/model/enum.rb', line 4

def order
  @order
end

#prefObject (readonly)

Returns the value of attribute pref.



4
5
6
# File 'lib/fsr/model/enum.rb', line 4

def pref
  @pref
end

#routeObject (readonly)

Returns the value of attribute route.



4
5
6
# File 'lib/fsr/model/enum.rb', line 4

def route
  @route
end

#serviceObject (readonly)

Returns the value of attribute service.



4
5
6
# File 'lib/fsr/model/enum.rb', line 4

def service
  @service
end

#supported_routesObject (readonly)

Returns the value of attribute supported_routes.



4
5
6
# File 'lib/fsr/model/enum.rb', line 4

def supported_routes
  @supported_routes
end