Sha256: df4b26074f99eb476472cc104f9adcd649c53a90b72d03c72bb27ae20b1c7e0d

Contents?: true

Size: 315 Bytes

Versions: 1

Compression:

Stored size: 315 Bytes

Contents

module Warden
  module Oauthed
    module Oauth
      class User < Struct.new(:attribs, :token)
        ATTRIBUTES = (ENV['USER_ATTRIBUTES'] || 'id email').split(/\s/).freeze
        
        ATTRIBUTES.each do |name|
          define_method(name) { attribs[name] }
        end
        
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
warden-oauthed-0.0.2 lib/warden-oauthed/user.rb