Class: Rota

Inherits:
Object
  • Object
show all
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

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

#dataInputObject



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

def dataInput
    @dataInput
end

#inputsObject



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

def inputs
    @inputs
end

#nameObject



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

def name
    @name
end

#outputsObject



45
46
47
# File 'lib/phari_doc_gen/rota.rb', line 45

def outputs
    @outputs
end

#printSelfObject



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

#requestObject



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

def request
    @request
end

#typeObject



25
26
27
# File 'lib/phari_doc_gen/rota.rb', line 25

def type
    @type
end