Class: Moult::FlagsReport::Occurrence

Inherits:
Struct
  • Object
show all
Defined in:
lib/moult/flags_report.rb

Overview

One reference site of a flag. symbol_id is the best-effort enclosing-method join key (shared across contracts), nil for a top-level reference. line is the call-site line; method is the OpenFeature fetch method used (it implies the value type and whether the _details variant was called).

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



31
32
33
# File 'lib/moult/flags_report.rb', line 31

def line
  @line
end

#method_nameObject

Returns the value of attribute method_name

Returns:

  • (Object)

    the current value of method_name



31
32
33
# File 'lib/moult/flags_report.rb', line 31

def method_name
  @method_name
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



31
32
33
# File 'lib/moult/flags_report.rb', line 31

def path
  @path
end

#symbol_idObject

Returns the value of attribute symbol_id

Returns:

  • (Object)

    the current value of symbol_id



31
32
33
# File 'lib/moult/flags_report.rb', line 31

def symbol_id
  @symbol_id
end

Instance Method Details

#to_hObject



32
33
34
# File 'lib/moult/flags_report.rb', line 32

def to_h
  {symbol_id: symbol_id, path: path, line: line, method: method_name}
end