Class: Joust::Version12

Inherits:
ExpectedResponse show all
Defined in:
lib/joust/expected_response/version_12.rb

Instance Method Summary collapse

Instance Method Details

#match?(json_hash) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
7
# File 'lib/joust/expected_response/version_12.rb', line 4

def match?(json_hash)
  return false unless super
  json_hash.has_key?('result') && json_hash.has_key?('error') && json_hash.has_key?('id')
end