Class: NetSuite::Passports::User
- Inherits:
-
Object
- Object
- NetSuite::Passports::User
- Defined in:
- lib/netsuite/passports/user.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
Returns the value of attribute account.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(account, email, password, role) ⇒ User
constructor
A new instance of User.
- #passport ⇒ Object
Constructor Details
#initialize(account, email, password, role) ⇒ User
Returns a new instance of User.
6 7 8 9 10 11 |
# File 'lib/netsuite/passports/user.rb', line 6 def initialize(account, email, password, role) @account = account.to_s @email = email @password = password @role = role end |
Instance Attribute Details
#account ⇒ Object (readonly)
Returns the value of attribute account.
4 5 6 |
# File 'lib/netsuite/passports/user.rb', line 4 def account @account end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
4 5 6 |
# File 'lib/netsuite/passports/user.rb', line 4 def email @email end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
4 5 6 |
# File 'lib/netsuite/passports/user.rb', line 4 def password @password end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
4 5 6 |
# File 'lib/netsuite/passports/user.rb', line 4 def role @role end |
Instance Method Details
#passport ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/netsuite/passports/user.rb', line 13 def passport { 'platformMsgs:passport' => { 'platformCore:account' => account, 'platformCore:email' => email, 'platformCore:password' => password, 'platformCore:role' => { :@internalId => role } } } end |