Class: LeoManager::LoginInfo
- Inherits:
-
Object
- Object
- LeoManager::LoginInfo
- Defined in:
- lib/leo_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.
276 277 278 279 280 281 282 283 |
# File 'lib/leo_manager_models.rb', line 276 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.
274 275 276 |
# File 'lib/leo_manager_models.rb', line 274 def access_key_id @access_key_id end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
274 275 276 |
# File 'lib/leo_manager_models.rb', line 274 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
274 275 276 |
# File 'lib/leo_manager_models.rb', line 274 def id @id end |
#role_id ⇒ Object (readonly)
Returns the value of attribute role_id.
274 275 276 |
# File 'lib/leo_manager_models.rb', line 274 def role_id @role_id end |
#secret_key ⇒ Object (readonly)
Returns the value of attribute secret_key.
274 275 276 |
# File 'lib/leo_manager_models.rb', line 274 def secret_key @secret_key end |
Instance Method Details
#role ⇒ Object
285 286 287 |
# File 'lib/leo_manager_models.rb', line 285 def role RoleDef[@role_id] end |