Exception: RBattlenet::Errors::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rbattlenet/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason) ⇒ Error

Returns a new instance of Error.



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

def initialize(reason)
  @reason = reason
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



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

def reason
  @reason
end