Exception: Neo::DCI::Role::NotAssignable
- Inherits:
-
StandardError
- Object
- StandardError
- Neo::DCI::Role::NotAssignable
- Defined in:
- lib/neo/dci/role.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(role, object, params) ⇒ NotAssignable
constructor
A new instance of NotAssignable.
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
#object ⇒ Object (readonly)
Returns the value of attribute object.
47 48 49 |
# File 'lib/neo/dci/role.rb', line 47 def object @object end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
47 48 49 |
# File 'lib/neo/dci/role.rb', line 47 def params @params end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
47 48 49 |
# File 'lib/neo/dci/role.rb', line 47 def role @role end |