Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/core_ext/hash_patch.rb

Instance Method Summary collapse

Instance Method Details

#errorObject

Get error element of API response.



11
12
13
# File 'lib/core_ext/hash_patch.rb', line 11

def error
  self['error']
end

#idObject

Get id element of API response.



7
8
9
# File 'lib/core_ext/hash_patch.rb', line 7

def id
  self['id']
end

#resultObject

Get result element of API response.



3
4
5
# File 'lib/core_ext/hash_patch.rb', line 3

def result
  self['result']
end