Class: Modelo

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

Overview


THE BEER-WARE LICENSEā€œ (Revision 42): <[email protected]> wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return. Luiz Philippe.


Instance Method Summary collapse

Constructor Details

#initialize(givenName, methodList, routeList, relationsList) ⇒ Modelo

Returns a new instance of Modelo.



14
15
16
17
18
19
# File 'lib/phari_doc_gen/modelo.rb', line 14

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

Instance Method Details

#methodsObject



33
34
35
# File 'lib/phari_doc_gen/modelo.rb', line 33

def methods
    @methods
end

#nameObject



29
30
31
# File 'lib/phari_doc_gen/modelo.rb', line 29

def name
    @name
end

#printSelfObject



21
22
23
24
25
26
27
# File 'lib/phari_doc_gen/modelo.rb', line 21

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

#relationsObject



41
42
43
# File 'lib/phari_doc_gen/modelo.rb', line 41

def relations
    @relations
end

#routesObject



37
38
39
# File 'lib/phari_doc_gen/modelo.rb', line 37

def routes
    @routes
end