Method: Egree::Client#post

Defined in:
lib/egree/client.rb

#post(api_command, body = nil) ⇒ Object



31
32
33
34
35
36
37
38
39
# File 'lib/egree/client.rb', line 31

def post api_command, body = nil
  response = make_post api_command, body

  if response.success?
    SuccessResult.new response.body
  else
    ErrorResult.new response.body
  end
end