class Stoolie::Result

Attributes

client[RW]
input[RW]
output[RW]

Public Class Methods

new(client) click to toggle source

Client must have the following attributes:

#input
#output

Client must implement the following methods

#analyze(input)
#is_insecure?
#is_spammy?
#is_blacklisted?
#is_offensive?
# File lib/stoolie/result.rb, line 17
def initialize(client)
  @client = client
  @input = client.input
  @ouput = client.output
end

Public Instance Methods

is_blacklisted?() click to toggle source

Public: tells whether the client found blacklisted phrases

Returns a boolean

# File lib/stoolie/result.rb, line 40
def is_blacklisted?
  @client.is_blacklisted?
end
is_insecure?() click to toggle source

Public: tells whether the client found XSS

Returns a boolean

# File lib/stoolie/result.rb, line 26
def is_insecure?
  @client.is_insecure?
end
is_offensive?() click to toggle source

Public: tells whether the client found offensive words or phrases

Returns a boolean

# File lib/stoolie/result.rb, line 47
def is_offensive?
  @client.is_offensive?
end
is_spam?() click to toggle source

Public: tells whether the client found spam

Returns a boolean

# File lib/stoolie/result.rb, line 33
def is_spam?
  @client.is_spam?
end