Class: Graphiti::Audit::Row
Instance Attribute Summary collapse
-
#findings ⇒ Object
Returns the value of attribute findings.
-
#options ⇒ Object
Returns the value of attribute options.
-
#preloaded ⇒ Object
Returns the value of attribute preloaded.
-
#relationship ⇒ Object
Returns the value of attribute relationship.
-
#resource ⇒ Object
Returns the value of attribute resource.
-
#resource_ids_blocker ⇒ Object
Returns the value of attribute resource_ids_blocker.
-
#resource_ids_default ⇒ Object
Returns the value of attribute resource_ids_default.
-
#resource_ids_source ⇒ Object
Returns the value of attribute resource_ids_source.
-
#resource_ids_source_if_always ⇒ Object
Returns the value of attribute resource_ids_source_if_always.
-
#target ⇒ Object
Returns the value of attribute target.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#findings ⇒ Object
Returns the value of attribute findings
10 11 12 |
# File 'lib/graphiti/audit.rb', line 10 def findings @findings end |
#options ⇒ Object
Returns the value of attribute options
10 11 12 |
# File 'lib/graphiti/audit.rb', line 10 def @options end |
#preloaded ⇒ Object
Returns the value of attribute preloaded
10 11 12 |
# File 'lib/graphiti/audit.rb', line 10 def preloaded @preloaded end |
#relationship ⇒ Object
Returns the value of attribute relationship
10 11 12 |
# File 'lib/graphiti/audit.rb', line 10 def relationship @relationship end |
#resource ⇒ Object
Returns the value of attribute resource
10 11 12 |
# File 'lib/graphiti/audit.rb', line 10 def resource @resource end |
#resource_ids_blocker ⇒ Object
Returns the value of attribute resource_ids_blocker
10 11 12 |
# File 'lib/graphiti/audit.rb', line 10 def resource_ids_blocker @resource_ids_blocker end |
#resource_ids_default ⇒ Object
Returns the value of attribute resource_ids_default
10 11 12 |
# File 'lib/graphiti/audit.rb', line 10 def resource_ids_default @resource_ids_default end |
#resource_ids_source ⇒ Object
Returns the value of attribute resource_ids_source
10 11 12 |
# File 'lib/graphiti/audit.rb', line 10 def resource_ids_source @resource_ids_source end |
#resource_ids_source_if_always ⇒ Object
Returns the value of attribute resource_ids_source_if_always
10 11 12 |
# File 'lib/graphiti/audit.rb', line 10 def resource_ids_source_if_always @resource_ids_source_if_always end |
#target ⇒ Object
Returns the value of attribute target
10 11 12 |
# File 'lib/graphiti/audit.rb', line 10 def target @target end |
#type ⇒ Object
Returns the value of attribute type
10 11 12 |
# File 'lib/graphiti/audit.rb', line 10 def type @type end |
Instance Method Details
#error? ⇒ Boolean
34 35 36 |
# File 'lib/graphiti/audit.rb', line 34 def error? severity == :error end |
#severity ⇒ Object
29 30 31 32 |
# File 'lib/graphiti/audit.rb', line 29 def severity return :error if findings.any?(&:error?) findings.empty? ? :ok : :warning end |
#would_start_loading? ⇒ Boolean
23 24 25 26 27 |
# File 'lib/graphiti/audit.rb', line 23 def would_start_loading? return false if resource_ids_default == :never resource_ids_source != :load && resource_ids_source_if_always == :load end |