Class: Auther::Presenter::Account
- Inherits:
-
Object
- Object
- Auther::Presenter::Account
- Includes:
- ActiveModel::Validations
- Defined in:
- app/presenters/auther/account.rb
Instance Attribute Summary collapse
-
#login ⇒ Object
Returns the value of attribute login.
-
#name ⇒ Object
Returns the value of attribute name.
-
#password ⇒ Object
Returns the value of attribute password.
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 |
# File 'app/presenters/auther/account.rb', line 12 def initialize = {} @name = [:name] @login = [:login] @password = [:password] end |
Instance Attribute Details
#login ⇒ Object
Returns the value of attribute login.
8 9 10 |
# File 'app/presenters/auther/account.rb', line 8 def login @login end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'app/presenters/auther/account.rb', line 8 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
8 9 10 |
# File 'app/presenters/auther/account.rb', line 8 def password @password end |