Class: Auther::Account

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
app/models/auther/account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 options = {}
  @name = options.fetch :name, nil
  @encrypted_login = options.fetch :encrypted_login, nil
  @encrypted_password = options.fetch :encrypted_password, nil
  @paths = options.fetch :paths, []
  @authorized_url = options.fetch :authorized_url, nil
  @deauthorized_url = options.fetch :deauthorized_url, nil
end

Instance Attribute Details

#authorized_urlObject

Returns the value of attribute authorized_url.



7
8
9
# File 'app/models/auther/account.rb', line 7

def authorized_url
  @authorized_url
end

#deauthorized_urlObject

Returns the value of attribute deauthorized_url.



7
8
9
# File 'app/models/auther/account.rb', line 7

def deauthorized_url
  @deauthorized_url
end

#encrypted_loginObject

Returns the value of attribute encrypted_login.



7
8
9
# File 'app/models/auther/account.rb', line 7

def 
  @encrypted_login
end

#encrypted_passwordObject

Returns the value of attribute encrypted_password.



7
8
9
# File 'app/models/auther/account.rb', line 7

def encrypted_password
  @encrypted_password
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'app/models/auther/account.rb', line 7

def name
  @name
end

#pathsObject

Returns the value of attribute paths.



7
8
9
# File 'app/models/auther/account.rb', line 7

def paths
  @paths
end