lib/snoo/flair.rb
def flair_config subreddit, opts = {}
      logged_in?
      options = {
        flair_enabled: true,
        flair_position: 'right',
        flair_self_assign_enabled: false,
        link_flair_position: 'right',
        link_flair_self_assign_enabled: false,
        uh: @modhash,
        r: subreddit,
        api_type: 'json'
      }
      options.merge! opts

      post('/api/flairconfig', body: options)
    end
def flair_config subreddit, opts = {}
      logged_in?
      options = {
        flair_enabled: true,
        flair_position: 'right',
        flair_self_assign_enabled: false,
        link_flair_position: 'right',
        link_flair_self_assign_enabled: false,
        uh: @modhash,
        r: subreddit,
        api_type: 'json'
      }
      options.merge! opts

      post('/api/flairconfig', body: options)
    end
Configures flair options for a subreddit. All options are required

 @param subreddit [String] The subreddit targeted.
 @param opts [Hash] An options hash
 @option opts [true, false] :flair_enabled (true) Flair enabled?
 @option opts [left, right] :flair_position ('right') Position of user flair.
 @option opts [true, false] :flair_self_assign_enabled (false) Allow users to assign their own flair from templates
 @option opts [none, left, right] :link_flair_position ('right') The position of link flair. Set to `none` to disable
 @option opts [true, false] :link_flair_self_assign_enabled (false) Allow a submitter to assign their own link flair
 @return (see #clear_sessions)