lib/runcible/resources/user.rb in runcible-0.0.7 vs lib/runcible/resources/user.rb in runcible-0.1.0

- old
+ new

@@ -21,14 +21,18 @@ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. module Runcible - module Pulp + module Resources class User < Runcible::Base def self.path(login=nil) (login == nil) ? "users/" : "users/#{login}/" + end + + def self.retrieve_all + call(:get, path) end def self.create(login, optional={}) required = required_params(binding.send(:local_variables), binding) call(:post, path, :payload => { :required => required, :optional => optional })