Class: User::Identities::OAuthEndpoint
- Inherits:
-
Object
- Object
- User::Identities::OAuthEndpoint
- Extended by:
- ActiveModel::Naming
- Defined in:
- app/models/user/identities/o_auth_endpoint.rb
Instance Attribute Summary collapse
-
#provider ⇒ Object
Returns the value of attribute provider.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(provider) ⇒ OAuthEndpoint
constructor
A new instance of OAuthEndpoint.
- #persisted? ⇒ Boolean
- #to_model ⇒ Object
- #to_param ⇒ Object
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
#provider ⇒ Object
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_name ⇒ Object
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
19 20 21 |
# File 'app/models/user/identities/o_auth_endpoint.rb', line 19 def persisted? true end |
#to_model ⇒ Object
15 16 17 |
# File 'app/models/user/identities/o_auth_endpoint.rb', line 15 def to_model self end |
#to_param ⇒ Object
11 12 13 |
# File 'app/models/user/identities/o_auth_endpoint.rb', line 11 def to_param provider end |