Class: Registrar::Middleware::ConvertOmniAuthHashToRegistrarHash::RegistrarHash
- Inherits:
-
Object
- Object
- Registrar::Middleware::ConvertOmniAuthHashToRegistrarHash::RegistrarHash
- Defined in:
- lib/registrar/middleware/convert_omniauth_hash_to_registrar_hash.rb
Class Method Summary collapse
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(env, time) ⇒ RegistrarHash
constructor
A new instance of RegistrarHash.
Constructor Details
#initialize(env, time) ⇒ RegistrarHash
Returns a new instance of RegistrarHash.
27 28 29 30 |
# File 'lib/registrar/middleware/convert_omniauth_hash_to_registrar_hash.rb', line 27 def initialize(env, time) @env = env @time = time end |
Class Method Details
.build(env, time) ⇒ Object
23 24 25 |
# File 'lib/registrar/middleware/convert_omniauth_hash_to_registrar_hash.rb', line 23 def self.build(env, time) new(env, time).build end |
Instance Method Details
#build ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/registrar/middleware/convert_omniauth_hash_to_registrar_hash.rb', line 32 def build Hash.new.tap do |schema| schema['provider'] = provider schema['profile'] = profile schema['trace'] = trace end end |