Class: LeoFSManager::LoginInfo
- Inherits:
-
Object
- Object
- LeoFSManager::LoginInfo
- Defined in:
- lib/leofs_manager_client/leofs_manager_models.rb
Instance Attribute Summary collapse
-
#access_key_id ⇒ Object
readonly
Returns the value of attribute access_key_id.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#role_id ⇒ Object
readonly
Returns the value of attribute role_id.
-
#secret_key ⇒ Object
readonly
Returns the value of attribute secret_key.
Instance Method Summary collapse
-
#initialize(h) ⇒ LoginInfo
constructor
A new instance of LoginInfo.
- #role ⇒ Object
Constructor Details
#initialize(h) ⇒ LoginInfo
Returns a new instance of LoginInfo.
187 188 189 190 191 192 193 194 |
# File 'lib/leofs_manager_client/leofs_manager_models.rb', line 187 def initialize(h) h = h[:user] @id = h[:id] @role_id = h[:role_id] @access_key_id = h[:access_key_id] @secret_key = h[:secret_key] @created_at = Time.parse(h[:created_at]) end |
Instance Attribute Details
#access_key_id ⇒ Object (readonly)
Returns the value of attribute access_key_id.
185 186 187 |
# File 'lib/leofs_manager_client/leofs_manager_models.rb', line 185 def access_key_id @access_key_id end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
185 186 187 |
# File 'lib/leofs_manager_client/leofs_manager_models.rb', line 185 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
185 186 187 |
# File 'lib/leofs_manager_client/leofs_manager_models.rb', line 185 def id @id end |
#role_id ⇒ Object (readonly)
Returns the value of attribute role_id.
185 186 187 |
# File 'lib/leofs_manager_client/leofs_manager_models.rb', line 185 def role_id @role_id end |
#secret_key ⇒ Object (readonly)
Returns the value of attribute secret_key.
185 186 187 |
# File 'lib/leofs_manager_client/leofs_manager_models.rb', line 185 def secret_key @secret_key end |
Instance Method Details
#role ⇒ Object
196 197 198 |
# File 'lib/leofs_manager_client/leofs_manager_models.rb', line 196 def role RoleDef[@role_id] end |