Exception: Graphiti::ActiveGraph::Deserializer::Conflict
- Inherits:
-
StandardError
- Object
- StandardError
- Graphiti::ActiveGraph::Deserializer::Conflict
- Defined in:
- lib/graphiti/active_graph/deserializer.rb
Instance Attribute Summary collapse
-
#body_value ⇒ Object
readonly
Returns the value of attribute body_value.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#path_value ⇒ Object
readonly
Returns the value of attribute path_value.
Instance Method Summary collapse
-
#initialize(key, path_value, body_value) ⇒ Conflict
constructor
A new instance of Conflict.
- #message ⇒ Object
Constructor Details
#initialize(key, path_value, body_value) ⇒ Conflict
Returns a new instance of Conflict.
6 7 8 9 10 |
# File 'lib/graphiti/active_graph/deserializer.rb', line 6 def initialize(key, path_value, body_value) @key = key @path_value = path_value @body_value = body_value end |
Instance Attribute Details
#body_value ⇒ Object (readonly)
Returns the value of attribute body_value.
4 5 6 |
# File 'lib/graphiti/active_graph/deserializer.rb', line 4 def body_value @body_value end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
4 5 6 |
# File 'lib/graphiti/active_graph/deserializer.rb', line 4 def key @key end |
#path_value ⇒ Object (readonly)
Returns the value of attribute path_value.
4 5 6 |
# File 'lib/graphiti/active_graph/deserializer.rb', line 4 def path_value @path_value end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'lib/graphiti/active_graph/deserializer.rb', line 12 def "Path parameter #{key} with value '#{path_value}' conflicts with payload value '#{body_value}'" end |