Class: RailsSso::FetchUser

Inherits:
Object
  • Object
show all
Defined in:
app/services/rails_sso/fetch_user.rb

Instance Method Summary collapse

Constructor Details

#initialize(access_token) ⇒ FetchUser

Returns a new instance of FetchUser.



3
4
5
# File 'app/services/rails_sso/fetch_user.rb', line 3

def initialize(access_token)
  @access_token = access_token
end

Instance Method Details

#call {|get| ... } ⇒ Object

Yields:

  • (get)


7
8
9
# File 'app/services/rails_sso/fetch_user.rb', line 7

def call
  yield(get)
end