class RedditApi::User
Attributes
username[R]
Public Class Methods
new(args = {})
click to toggle source
# File lib/reddit_api/user.rb, line 7 def initialize(args = {}) @username = args.fetch("username", nil) end
Public Instance Methods
to_h()
click to toggle source
# File lib/reddit_api/user.rb, line 11 def to_h { username: username } end