Exception: TeamSpeak3::Exceptions::InvalidTarget

Inherits:
StandardException show all
Defined in:
lib/exceptions/invalid_target.rb

Instance Attribute Summary collapse

Attributes inherited from StandardException

#message

Instance Method Summary collapse

Methods inherited from StandardException

#to_s

Constructor Details

#initialize(target) ⇒ InvalidTarget

Returns a new instance of InvalidTarget.



6
7
8
9
# File 'lib/exceptions/invalid_target.rb', line 6

def initialize(target)
  @target = target
  @message = "Invalid target '#{target}'."
end

Instance Attribute Details

#targetObject (readonly)

Returns the value of attribute target.



4
5
6
# File 'lib/exceptions/invalid_target.rb', line 4

def target
  @target
end