Class: InfaktApiClient::User::AccountData

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#emailObject (readonly)

Returns the value of attribute email.



16
17
18
# File 'lib/infakt_api_client/user.rb', line 16

def email
  @email
end

#registered_atObject (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

#roleObject (readonly)

Returns the value of attribute role.



16
17
18
# File 'lib/infakt_api_client/user.rb', line 16

def role
  @role
end

#siteObject (readonly)

Returns the value of attribute site.



16
17
18
# File 'lib/infakt_api_client/user.rb', line 16

def site
  @site
end

#usernameObject (readonly)

Returns the value of attribute username.



16
17
18
# File 'lib/infakt_api_client/user.rb', line 16

def username
  @username
end

#uuidObject (readonly)

Returns the value of attribute uuid.



16
17
18
# File 'lib/infakt_api_client/user.rb', line 16

def uuid
  @uuid
end