Class: InfaktApiClient::User::AccountData
- Inherits:
-
Object
- Object
- InfaktApiClient::User::AccountData
- Defined in:
- lib/infakt_api_client/user.rb
Overview
Represents account-specific information for a user in the Infakt API system. Contains basic user identification and authentication details such as UUID, email, username, and registration information.
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#registered_at ⇒ Object
readonly
Returns the value of attribute registered_at.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
-
#site ⇒ Object
readonly
Returns the value of attribute site.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
-
#uuid ⇒ Object
readonly
Returns the value of attribute uuid.
Instance Method Summary collapse
-
#initialize(data) ⇒ AccountData
constructor
A new instance of AccountData.
Constructor Details
#initialize(data) ⇒ AccountData
Returns a new instance of AccountData.
18 19 20 21 22 23 24 25 |
# File 'lib/infakt_api_client/user.rb', line 18 def initialize(data) @uuid = data["uuid"] @email = data["email"] @username = data["username"] @site = data["site"] @role = data["role"] @registered_at = data["registered_at"] end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
16 17 18 |
# File 'lib/infakt_api_client/user.rb', line 16 def email @email end |
#registered_at ⇒ Object (readonly)
Returns the value of attribute registered_at.
16 17 18 |
# File 'lib/infakt_api_client/user.rb', line 16 def registered_at @registered_at end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
16 17 18 |
# File 'lib/infakt_api_client/user.rb', line 16 def role @role end |
#site ⇒ Object (readonly)
Returns the value of attribute site.
16 17 18 |
# File 'lib/infakt_api_client/user.rb', line 16 def site @site end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
16 17 18 |
# File 'lib/infakt_api_client/user.rb', line 16 def username @username end |
#uuid ⇒ Object (readonly)
Returns the value of attribute uuid.
16 17 18 |
# File 'lib/infakt_api_client/user.rb', line 16 def uuid @uuid end |