Class: GemXray::Result::Reason

Inherits:
Struct
  • Object
show all
Defined in:
lib/gemxray/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#detailObject

Returns the value of attribute detail

Returns:

  • (Object)

    the current value of detail



7
8
9
# File 'lib/gemxray/result.rb', line 7

def detail
  @detail
end

#severityObject

Returns the value of attribute severity

Returns:

  • (Object)

    the current value of severity



7
8
9
# File 'lib/gemxray/result.rb', line 7

def severity
  @severity
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



7
8
9
# File 'lib/gemxray/result.rb', line 7

def type
  @type
end

Instance Method Details

#to_hObject



8
9
10
# File 'lib/gemxray/result.rb', line 8

def to_h
  { type: type.to_s, detail: detail }
end