Class: EthermineApi::DefaultParser

Inherits:
Object
  • Object
show all
Defined in:
lib/ethermine_api/default_parser.rb

Class Method Summary collapse

Class Method Details

.parse(response) ⇒ Object



6
7
8
9
# File 'lib/ethermine_api/default_parser.rb', line 6

def parse response
  j_response = JSON.parse(response.body, object_class: OpenStruct)
  OpenStruct.new(j_response)
end