Class: Hashira::CI::Scope

Inherits:
Data
  • Object
show all
Defined in:
lib/hashira/ci/scope.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#analyzersObject (readonly)

Returns the value of attribute analyzers

Returns:

  • (Object)

    the current value of analyzers



5
6
7
# File 'lib/hashira/ci/scope.rb', line 5

def analyzers
  @analyzers
end

#targetsObject (readonly)

Returns the value of attribute targets

Returns:

  • (Object)

    the current value of targets



5
6
7
# File 'lib/hashira/ci/scope.rb', line 5

def targets
  @targets
end

Instance Method Details

#to_hObject



7
# File 'lib/hashira/ci/scope.rb', line 7

def to_h = { analyzers: analyzers.map(&:to_s).sort, targets: targets.sort }