class Outliers::Result

Attributes

account_name[R]
arguments[R]
name[R]
passing[R]
provider_name[R]
resource_name[R]
resources[R]
verification_name[R]

Public Class Methods

new(args) click to toggle source
# File lib/outliers/result.rb, line 24
def initialize(args)
  @account_name      = args[:account_name]
  @arguments         = args[:arguments]
  @name              = args[:name] || 'unspecified'
  @provider_name     = args[:provider_name]
  @resources         = args[:resources]
  @resource_name     = args[:resource_name]
  @passing           = args[:passing]
  @verification_name = args[:verification_name]
end

Public Instance Methods

failed?() click to toggle source
# File lib/outliers/result.rb, line 39
def failed?
  !passed?
end
passed?() click to toggle source
# File lib/outliers/result.rb, line 35
def passed?
  @passing
end
to_hash() click to toggle source
# File lib/outliers/result.rb, line 13
def to_hash
  { 'account_name'      => account_name,
    'arguments'         => arguments,
    'name'              => name,
    'passing'           => passing,
    'provider_name'     => provider_name,
    'resource_name'     => resource_name,
    'verification_name' => verification_name,
    'resources'         => resources }
end
to_json() click to toggle source
# File lib/outliers/result.rb, line 9
def to_json
  to_hash.to_json
end