Class: Auther::Account
- Inherits:
-
Object
- Object
- Auther::Account
- Includes:
- ActiveModel::Validations
- Defined in:
- app/models/auther/account.rb
Instance Attribute Summary collapse
-
#authorized_url ⇒ Object
Returns the value of attribute authorized_url.
-
#deauthorized_url ⇒ Object
Returns the value of attribute deauthorized_url.
-
#encrypted_login ⇒ Object
Returns the value of attribute encrypted_login.
-
#encrypted_password ⇒ Object
Returns the value of attribute encrypted_password.
-
#name ⇒ Object
Returns the value of attribute name.
-
#paths ⇒ Object
Returns the value of attribute paths.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(options = {}) ⇒ Account
Returns a new instance of Account.
12 13 14 15 16 17 18 19 |
# File 'app/models/auther/account.rb', line 12 def initialize = {} @name = .fetch :name, nil @encrypted_login = .fetch :encrypted_login, nil @encrypted_password = .fetch :encrypted_password, nil @paths = .fetch :paths, [] @authorized_url = .fetch :authorized_url, nil @deauthorized_url = .fetch :deauthorized_url, nil end |
Instance Attribute Details
#authorized_url ⇒ Object
Returns the value of attribute authorized_url.
7 8 9 |
# File 'app/models/auther/account.rb', line 7 def @authorized_url end |
#deauthorized_url ⇒ Object
Returns the value of attribute deauthorized_url.
7 8 9 |
# File 'app/models/auther/account.rb', line 7 def @deauthorized_url end |
#encrypted_login ⇒ Object
Returns the value of attribute encrypted_login.
7 8 9 |
# File 'app/models/auther/account.rb', line 7 def encrypted_login @encrypted_login end |
#encrypted_password ⇒ Object
Returns the value of attribute encrypted_password.
7 8 9 |
# File 'app/models/auther/account.rb', line 7 def encrypted_password @encrypted_password end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'app/models/auther/account.rb', line 7 def name @name end |
#paths ⇒ Object
Returns the value of attribute paths.
7 8 9 |
# File 'app/models/auther/account.rb', line 7 def paths @paths end |