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.



8
9
10
11
12
# File 'lib/graphiti/active_graph/deserializer.rb', line 8

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.



6
7
8
# File 'lib/graphiti/active_graph/deserializer.rb', line 6

def body_value
  @body_value
end

#keyObject (readonly)

Returns the value of attribute key.



6
7
8
# File 'lib/graphiti/active_graph/deserializer.rb', line 6

def key
  @key
end

#path_valueObject (readonly)

Returns the value of attribute path_value.



6
7
8
# File 'lib/graphiti/active_graph/deserializer.rb', line 6

def path_value
  @path_value
end

Instance Method Details

#messageObject



14
15
16
# File 'lib/graphiti/active_graph/deserializer.rb', line 14

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