lib/runcible/resources/user.rb in runcible-0.4.12 vs lib/runcible/resources/user.rb in runcible-1.0.0
- old
+ new
@@ -36,36 +36,36 @@
end
# Retrieves all users
#
# @return [RestClient::Response]
- def self.retrieve_all
+ def retrieve_all
call(:get, path)
end
# Creates a user
#
# @param [String] login the login requested for the user
# @param [Hash] optional container for all optional parameters
# @return [RestClient::Response]
- def self.create(login, optional={})
+ def create(login, optional={})
required = required_params(binding.send(:local_variables), binding)
call(:post, path, :payload => { :required => required, :optional => optional })
end
# Retrieves a user
#
# @param [String] login the login of the user being retrieved
# @return [RestClient::Response]
- def self.retrieve(login)
+ def retrieve(login)
call(:get, path(login))
end
# Deletes a user
#
# @param [String] login the login of the user being deleted
# @return [RestClient::Response]
- def self.delete(login)
+ def delete(login)
call(:delete, path(login))
end
end
end