Class: Evilution::Reporter::CLI::Section

Inherits:
Object
  • Object
show all
Defined in:
lib/evilution/reporter/cli/section.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title:, fetcher:, formatter:) ⇒ Section

Returns a new instance of Section.



8
9
10
11
12
# File 'lib/evilution/reporter/cli/section.rb', line 8

def initialize(title:, fetcher:, formatter:)
  @title = title
  @fetcher = fetcher
  @formatter = formatter
end

Instance Attribute Details

#fetcherObject (readonly)

Returns the value of attribute fetcher.



6
7
8
# File 'lib/evilution/reporter/cli/section.rb', line 6

def fetcher
  @fetcher
end

#formatterObject (readonly)

Returns the value of attribute formatter.



6
7
8
# File 'lib/evilution/reporter/cli/section.rb', line 6

def formatter
  @formatter
end

#titleObject (readonly)

Returns the value of attribute title.



6
7
8
# File 'lib/evilution/reporter/cli/section.rb', line 6

def title
  @title
end