Class: Attributary::DSL::AttributaryError

Inherits:
Object
  • Object
show all
Defined in:
lib/attributary/dsl/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, klass, message) ⇒ AttributaryError

Returns a new instance of AttributaryError.



5
6
7
8
9
# File 'lib/attributary/dsl/error.rb', line 5

def initialize(name, klass, message)
  @name = name
  @klass = klass
  @message = message
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



4
5
6
# File 'lib/attributary/dsl/error.rb', line 4

def klass
  @klass
end

#messageObject (readonly)

Returns the value of attribute message.



4
5
6
# File 'lib/attributary/dsl/error.rb', line 4

def message
  @message
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/attributary/dsl/error.rb', line 4

def name
  @name
end