Class: Jeka::Test

Inherits:
Object
  • Object
show all
Defined in:
lib/jeka/test.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Test

Returns a new instance of Test.



8
9
10
# File 'lib/jeka/test.rb', line 8

def initialize(name)
  @name = name
end

Instance Attribute Details

#databaseObject (readonly)

Returns the value of attribute database.



3
4
5
# File 'lib/jeka/test.rb', line 3

def database
  @database
end

#inputObject

Returns the value of attribute input.



4
5
6
# File 'lib/jeka/test.rb', line 4

def input
  @input
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/jeka/test.rb', line 6

def name
  @name
end

#outputObject

Returns the value of attribute output.



5
6
7
# File 'lib/jeka/test.rb', line 5

def output
  @output
end

Instance Method Details

#jekafyObject



12
13
14
15
16
17
18
19
# File 'lib/jeka/test.rb', line 12

def jekafy
  @database = Jeka::Analysis::Test.create(
    name: @name,
    output: @output,
    input: @input
  )
  @database
end