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.
9 10 11 12 13 |
# File 'lib/graphiti/active_graph/deserializer.rb', line 9 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.
7 8 9 |
# File 'lib/graphiti/active_graph/deserializer.rb', line 7 def body_value @body_value end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
7 8 9 |
# File 'lib/graphiti/active_graph/deserializer.rb', line 7 def key @key end |
#path_value ⇒ Object (readonly)
Returns the value of attribute path_value.
7 8 9 |
# File 'lib/graphiti/active_graph/deserializer.rb', line 7 def path_value @path_value end |
Instance Method Details
#message ⇒ Object
15 16 17 |
# File 'lib/graphiti/active_graph/deserializer.rb', line 15 def "Path parameter #{key} with value '#{path_value}' conflicts with payload value '#{body_value}'" end |