lib/gini-api/oauth.rb
Method initialize
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(api, opts)
# Initialize client. max_redirect is required as oauth2 will otherwise redirect to location from header (localhost)
# https://github.com/intridea/oauth2/blob/master/lib/oauth2/client.rb#L100
# Our code is encoded in the URL and has to be parsed from there.
client = OAuth2::Client.new(