Class: Modelo

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

Instance Method Summary collapse

Constructor Details

#initialize(givenName, methodList, routeList) ⇒ Modelo

Returns a new instance of Modelo.



6
7
8
9
10
# File 'lib/PhariDocGen/Modelo.rb', line 6

def initialize(givenName, methodList, routeList)
    @name = givenName
    @methods = methodList
    @routes = routeList
end

Instance Method Details

#methodsObject



24
25
26
# File 'lib/PhariDocGen/Modelo.rb', line 24

def methods
    @methods
end

#nameObject



20
21
22
# File 'lib/PhariDocGen/Modelo.rb', line 20

def name
    @name
end

#printSelfObject



12
13
14
15
16
17
18
# File 'lib/PhariDocGen/Modelo.rb', line 12

def printSelf
    puts @name.to_s
    puts "#{@name} methods:"
    @methods.each(&:printSelf)
    puts "#{@name} routes:"
    @routes.each(&:printSelf)
end

#routesObject



28
29
30
# File 'lib/PhariDocGen/Modelo.rb', line 28

def routes
    @routes
end