Class: Authenticator::Client::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/authenticator/client/account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject

Returns the value of attribute created_at.



4
5
6
# File 'lib/authenticator/client/account.rb', line 4

def created_at
  @created_at
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/authenticator/client/account.rb', line 4

def id
  @id
end

#passwordObject

Returns the value of attribute password.



4
5
6
# File 'lib/authenticator/client/account.rb', line 4

def password
  @password
end

#updated_atObject

Returns the value of attribute updated_at.



4
5
6
# File 'lib/authenticator/client/account.rb', line 4

def updated_at
  @updated_at
end

#usernameObject

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_paramsObject



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