Class: TestParser::TestInformation

Inherits:
Object
  • Object
show all
Defined in:
lib/test_parser/test_information.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, identification, snippet_source) ⇒ TestInformation

Returns a new instance of TestInformation.



6
7
8
9
10
# File 'lib/test_parser/test_information.rb', line 6

def initialize(type, identification, snippet_source)
  @type           = type
  @identification = identification
  @snippet_source = snippet_source
end

Instance Attribute Details

#identificationObject (readonly)

Returns the value of attribute identification.



4
5
6
# File 'lib/test_parser/test_information.rb', line 4

def identification
  @identification
end

#snippet_sourceObject (readonly)

Returns the value of attribute snippet_source.



4
5
6
# File 'lib/test_parser/test_information.rb', line 4

def snippet_source
  @snippet_source
end

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'lib/test_parser/test_information.rb', line 4

def type
  @type
end

Instance Method Details

#fileObject



16
17
18
# File 'lib/test_parser/test_information.rb', line 16

def file
  snippet_source.file
end

#snippetObject



12
13
14
# File 'lib/test_parser/test_information.rb', line 12

def snippet
  snippet_source.snippet
end