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



43
44
45
46
47
48
49
50
51
# File 'lib/async/slack/representation.rb', line 43

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