Class: Async::Slack::Wrapper::Parser

Inherits:
HTTP::Body::Wrapper
  • Object
show all
Defined in:
lib/async/slack/representation.rb

Instance Method Summary collapse

Instance Method Details

#joinObject



30
31
32
33
34
35
36
37
38
# File 'lib/async/slack/representation.rb', line 30

def join
	value = ::JSON.parse(super, symbolize_names: true)
	
	if error = value[:error]
		raise Error, error
	end
	
	return value
end