lib/redd/clients/base/identity.rb in redd-0.7.8 vs lib/redd/clients/base/identity.rb in redd-0.7.9
- old
+ new
@@ -1,22 +1,22 @@
-module Redd
- module Clients
- class Base
- # Methods that require the "identity" scope
- module Identity
- # @return [Objects::User] The logged-in user.
- def me
- response = get("/api/v1/me")
- object_from_body(kind: "t2", data: response.body)
- end
-
- # @return [Objects::Base] Your current preferences.
- # @see https://www.reddit.com/dev/api/oauth#GET_api_v1_me_prefs
- def my_prefs
- response = get("/api/v1/me/prefs")
- # Basically an uneditable mashie.
- Objects::Base.new(self, response.body)
- end
- end
- end
- end
-end
+module Redd
+ module Clients
+ class Base
+ # Methods that require the "identity" scope
+ module Identity
+ # @return [Objects::User] The logged-in user.
+ def me
+ response = get("/api/v1/me")
+ object_from_body(kind: "t2", data: response.body)
+ end
+
+ # @return [Objects::Base] Your current preferences.
+ # @see https://www.reddit.com/dev/api/oauth#GET_api_v1_me_prefs
+ def my_prefs
+ response = get("/api/v1/me/prefs")
+ # Basically an uneditable mashie.
+ Objects::Base.new(self, response.body)
+ end
+ end
+ end
+ end
+end