Class: Modelo
- Inherits:
-
Object
- Object
- Modelo
- 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
-
#initialize(givenName, methodList, routeList, relationsList) ⇒ Modelo
constructor
A new instance of Modelo.
- #methods ⇒ Object
- #name ⇒ Object
- #printSelf ⇒ Object
- #relations ⇒ Object
- #routes ⇒ Object
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
#methods ⇒ Object
33 34 35 |
# File 'lib/phari_doc_gen/modelo.rb', line 33 def methods @methods end |
#name ⇒ Object
29 30 31 |
# File 'lib/phari_doc_gen/modelo.rb', line 29 def name @name end |
#printSelf ⇒ Object
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 |
#relations ⇒ Object
41 42 43 |
# File 'lib/phari_doc_gen/modelo.rb', line 41 def relations @relations end |
#routes ⇒ Object
37 38 39 |
# File 'lib/phari_doc_gen/modelo.rb', line 37 def routes @routes end |