Class: Registrar::Middleware::ConvertOmniAuthHashToRegistrarHash::RegistrarHash

Inherits:
Object
  • Object
show all
Defined in:
lib/registrar/middleware/convert_omniauth_hash_to_registrar_hash.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#buildObject



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