class SSLCheck::Errors::GenericError

Attributes

message[RW]
name[RW]
type[RW]

Public Class Methods

new(opts={}) click to toggle source
# File lib/sslcheck/generic_error.rb, line 5
def initialize(opts={})
  self.name    = opts[:name]
  self.type    = opts[:type]
  self.message = opts[:message]
end

Public Instance Methods

to_s() click to toggle source
# File lib/sslcheck/generic_error.rb, line 10
def to_s
  "[#{self.name}] #{self.message}"
end