class PlaygroundClient::API

Public Instance Methods

user_register(fields) click to toggle source
# File lib/playground_client/api.rb, line 9
def user_register(fields)

  user = { :user => fields }


  p post('/users/register', user)
end

Private Instance Methods

post(url, obj) click to toggle source
# File lib/playground_client/api.rb, line 19
def post(url, obj)
  self.class.post(url, :body => obj.to_json, :headers => {
                                        'Content-Type'  => 'application/json',
                                        'Accept'        => 'application/json'
                                      })
end