Class: Authenticator::Client::Account
- Inherits:
-
Object
- Object
- Authenticator::Client::Account
- Defined in:
- lib/authenticator/client/account.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#password ⇒ Object
Returns the value of attribute password.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(username, password) ⇒ Account
constructor
A new instance of Account.
- #to_params ⇒ Object (also: #to_h)
Constructor Details
#initialize(username, password) ⇒ Account
Returns a new instance of Account.
5 6 7 8 |
# File 'lib/authenticator/client/account.rb', line 5 def initialize(username, password) @username = username @password = password end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/authenticator/client/account.rb', line 4 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/authenticator/client/account.rb', line 4 def id @id end |
#password ⇒ Object
Returns the value of attribute password.
4 5 6 |
# File 'lib/authenticator/client/account.rb', line 4 def password @password end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
4 5 6 |
# File 'lib/authenticator/client/account.rb', line 4 def updated_at @updated_at end |
#username ⇒ Object
Returns the value of attribute username.
4 5 6 |
# File 'lib/authenticator/client/account.rb', line 4 def username @username end |
Instance Method Details
#to_params ⇒ Object Also known as: to_h
10 11 12 13 14 15 16 17 |
# File 'lib/authenticator/client/account.rb', line 10 def to_params { account: { username: username, password: password } } end |