Class: Wikidotrb::Module::AbstractUser
- Inherits:
-
Object
- Object
- Wikidotrb::Module::AbstractUser
- Defined in:
- lib/wikidotrb/module/user.rb
Overview
Abstract class for user objects
Direct Known Subclasses
Instance Attribute Summary collapse
-
#avatar_url
Returns the value of attribute avatar_url.
-
#client
Returns the value of attribute client.
-
#id
Returns the value of attribute id.
-
#ip
Returns the value of attribute ip.
-
#ip_masked
Returns the value of attribute ip_masked.
-
#name
Returns the value of attribute name.
-
#unix_name
Returns the value of attribute unix_name.
Instance Method Summary collapse
-
#initialize(client:, id: nil, name: nil, unix_name: nil, avatar_url: nil, ip: nil, ip_masked: nil) ⇒ AbstractUser
constructor
A new instance of AbstractUser.
Constructor Details
#initialize(client:, id: nil, name: nil, unix_name: nil, avatar_url: nil, ip: nil, ip_masked: nil) ⇒ AbstractUser
Returns a new instance of AbstractUser.
62 63 64 65 66 67 68 69 70 |
# File 'lib/wikidotrb/module/user.rb', line 62 def initialize(client:, id: nil, name: nil, unix_name: nil, avatar_url: nil, ip: nil, ip_masked: nil) @client = client @id = id @name = name @unix_name = unix_name @avatar_url = avatar_url @ip = ip @ip_masked = ip_masked end |
Instance Attribute Details
#avatar_url
Returns the value of attribute avatar_url.
60 61 62 |
# File 'lib/wikidotrb/module/user.rb', line 60 def avatar_url @avatar_url end |
#client
Returns the value of attribute client.
60 61 62 |
# File 'lib/wikidotrb/module/user.rb', line 60 def client @client end |
#id
Returns the value of attribute id.
60 61 62 |
# File 'lib/wikidotrb/module/user.rb', line 60 def id @id end |
#ip
Returns the value of attribute ip.
60 61 62 |
# File 'lib/wikidotrb/module/user.rb', line 60 def ip @ip end |
#ip_masked
Returns the value of attribute ip_masked.
60 61 62 |
# File 'lib/wikidotrb/module/user.rb', line 60 def ip_masked @ip_masked end |
#name
Returns the value of attribute name.
60 61 62 |
# File 'lib/wikidotrb/module/user.rb', line 60 def name @name end |
#unix_name
Returns the value of attribute unix_name.
60 61 62 |
# File 'lib/wikidotrb/module/user.rb', line 60 def unix_name @unix_name end |