Class: Rota
- Inherits:
-
Object
- Object
- Rota
- Defined in:
- lib/phari_doc_gen/rota.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
- #dataInput ⇒ Object
-
#initialize(givenName, givenType, givenRequest, givenDataInput, inputList, outputList) ⇒ Rota
constructor
A new instance of Rota.
- #inputs ⇒ Object
- #name ⇒ Object
- #outputs ⇒ Object
- #printSelf ⇒ Object
- #request ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(givenName, givenType, givenRequest, givenDataInput, inputList, outputList) ⇒ Rota
Returns a new instance of Rota.
16 17 18 19 20 21 22 23 |
# File 'lib/phari_doc_gen/rota.rb', line 16 def initialize(givenName, givenType, givenRequest, givenDataInput, inputList, outputList) @type = givenType @name = givenName @request = givenRequest @dataInput = givenDataInput @inputs = inputList @outputs = outputList end |
Instance Method Details
#dataInput ⇒ Object
37 38 39 |
# File 'lib/phari_doc_gen/rota.rb', line 37 def dataInput @dataInput end |
#inputs ⇒ Object
41 42 43 |
# File 'lib/phari_doc_gen/rota.rb', line 41 def inputs @inputs end |
#name ⇒ Object
29 30 31 |
# File 'lib/phari_doc_gen/rota.rb', line 29 def name @name end |
#outputs ⇒ Object
45 46 47 |
# File 'lib/phari_doc_gen/rota.rb', line 45 def outputs @outputs end |
#printSelf ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/phari_doc_gen/rota.rb', line 49 def printSelf puts"\n\nNome: #{@name}Tipo: #{@type}\nInputs:" @input.each(&:printSelf) puts'Outputs:' @output.each do |output| if output != 'nil' output.printSelf else puts'nil' end end end |
#request ⇒ Object
33 34 35 |
# File 'lib/phari_doc_gen/rota.rb', line 33 def request @request end |
#type ⇒ Object
25 26 27 |
# File 'lib/phari_doc_gen/rota.rb', line 25 def type @type end |