lib/pupil/blocks.rb in pupil-0.1.0 vs lib/pupil/blocks.rb in pupil-0.1.1

- old
+ new

@@ -1,8 +1,8 @@ class Pupil # @param [Fixnum] id id - # @return [Hash] response + # @return [Pupil::User] response def block param case param.keys[0].to_sym when :screen_name response = self.post("/blocks/create.json", {:screen_name => param.values[0]}) when :id @@ -14,11 +14,11 @@ end return false end # @param [Fixnum] id id - # @return [Hash] response + # @return [Pupil::User] response def unblock param case param.keys[0].to_sym when :screen_name response = self.post("/blocks/destroy.json", {:screen_name => param.values[0]}) when :id @@ -29,13 +29,12 @@ return User.new response end return false end - # @return [Hash] list of blocking users + # @return [Array] list of blocking users def blocking response = self.get("/blocks/blocking.json") - p response users = Array.new response["users"].each do |element| user = User.new element users << user end \ No newline at end of file