Class: Copilot::SkillsLoadDiagnostics

Inherits:
Struct
  • Object
show all
Defined in:
lib/copilot/types.rb

Overview

Experimental Diagnostics from loading skills.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#errorsObject

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



798
799
800
# File 'lib/copilot/types.rb', line 798

def errors
  @errors
end

#warningsObject

Returns the value of attribute warnings

Returns:

  • (Object)

    the current value of warnings



798
799
800
# File 'lib/copilot/types.rb', line 798

def warnings
  @warnings
end

Class Method Details

.from_hash(h) ⇒ Object



799
800
801
802
803
804
# File 'lib/copilot/types.rb', line 799

def self.from_hash(h)
  new(
    errors: h["errors"] || [],
    warnings: h["warnings"] || []
  )
end