Class: CtaTrack::Route

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Route

Returns a new instance of Route.



14
15
16
17
# File 'lib/routes.rb', line 14

def initialize(args) 
  @number = args[:number]
  @name = args[:name]
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



13
14
15
# File 'lib/routes.rb', line 13

def name
  @name
end

#numberObject (readonly)

Returns the value of attribute number.



13
14
15
# File 'lib/routes.rb', line 13

def number
  @number
end