Exception: Neo::DCI::Role::NotAssignable

Inherits:
StandardError
  • Object
show all
Defined in:
lib/neo/dci/role.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(role, object, params) ⇒ NotAssignable

Returns a new instance of NotAssignable.



49
50
51
52
53
54
# File 'lib/neo/dci/role.rb', line 49

def initialize(role, object, params)
  super "Role #{role} not assignable to #{object} with params #{params.inspect}"
  @role   = role
  @object = object
  @params = params
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



47
48
49
# File 'lib/neo/dci/role.rb', line 47

def object
  @object
end

#paramsObject (readonly)

Returns the value of attribute params.



47
48
49
# File 'lib/neo/dci/role.rb', line 47

def params
  @params
end

#roleObject (readonly)

Returns the value of attribute role.



47
48
49
# File 'lib/neo/dci/role.rb', line 47

def role
  @role
end