lib/ahub/user.rb in ahub-0.1.4 vs lib/ahub/user.rb in ahub-0.1.7

- old
+ new

@@ -1,8 +1,11 @@ module Ahub class User extend Ahub::APIHelpers + def initialize(attrs) + end + def self.find(id=nil) url = "#{Ahub::DOMAIN}/services/v2/user" url += "/#{id}" if id url += '.json' OpenStruct.new(JSON.parse(RestClient.get(url, admin_headers), symbolize_names:true))