Class: LastPass::Account

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, name, username, password, url, group) ⇒ Account

Returns a new instance of Account.



13
14
15
16
17
18
19
20
# File 'lib/lastpass/account.rb', line 13

def initialize id, name, username, password, url, group
    @id = id
    @name = name
    @username = username
    @password = password
    @url = url
    @group = group
end

Instance Attribute Details

#groupObject (readonly)

Returns the value of attribute group.



6
7
8
# File 'lib/lastpass/account.rb', line 6

def group
  @group
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/lastpass/account.rb', line 6

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/lastpass/account.rb', line 6

def name
  @name
end

#passwordObject (readonly)

Returns the value of attribute password.



6
7
8
# File 'lib/lastpass/account.rb', line 6

def password
  @password
end

#urlObject (readonly)

Returns the value of attribute url.



6
7
8
# File 'lib/lastpass/account.rb', line 6

def url
  @url
end

#usernameObject (readonly)

Returns the value of attribute username.



6
7
8
# File 'lib/lastpass/account.rb', line 6

def username
  @username
end