Class: User::Identities::OAuthEndpoint

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Naming
Defined in:
app/models/user/identities/o_auth_endpoint.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provider) ⇒ OAuthEndpoint

Returns a new instance of OAuthEndpoint.



7
8
9
# File 'app/models/user/identities/o_auth_endpoint.rb', line 7

def initialize provider
  @provider = provider
end

Instance Attribute Details

#providerObject

Returns the value of attribute provider.



5
6
7
# File 'app/models/user/identities/o_auth_endpoint.rb', line 5

def provider
  @provider
end

Class Method Details

.model_nameObject



23
24
25
# File 'app/models/user/identities/o_auth_endpoint.rb', line 23

def self.model_name
  ActiveModel::Name.new(self, nil, "OAuthEndpoint")
end

Instance Method Details

#persisted?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'app/models/user/identities/o_auth_endpoint.rb', line 19

def persisted?
  true
end

#to_modelObject



15
16
17
# File 'app/models/user/identities/o_auth_endpoint.rb', line 15

def to_model
  self
end

#to_paramObject



11
12
13
# File 'app/models/user/identities/o_auth_endpoint.rb', line 11

def to_param
  provider
end