Class: CC::Service::Formatter

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/cc/service/formatter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(service, options = {}) ⇒ Formatter

Returns a new instance of Formatter.



6
7
8
9
10
11
12
13
# File 'lib/cc/service/formatter.rb', line 6

def initialize(service, options = {})
  super(service)

  @options = {
    prefix: "[Code Climate]",
    prefix_with_repo: true,
  }.merge(options)
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/cc/service/formatter.rb', line 4

def options
  @options
end