Exception: Graphiti::ActiveGraph::Deserializer::Conflict

Inherits:
StandardError
  • Object
show all
Defined in:
lib/graphiti/active_graph/deserializer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_valueObject (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

#keyObject (readonly)

Returns the value of attribute key.



4
5
6
# File 'lib/graphiti/active_graph/deserializer.rb', line 4

def key
  @key
end

#path_valueObject (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

#messageObject



12
13
14
# File 'lib/graphiti/active_graph/deserializer.rb', line 12

def message
  "Path parameter #{key} with value '#{path_value}' conflicts with payload value '#{body_value}'"
end