Class: Sightstone::Member
- Inherits:
-
Object
- Object
- Sightstone::Member
- Defined in:
- lib/sightstone/team.rb
Overview
member of a team
Instance Attribute Summary collapse
-
#inviteDate ⇒ Fixnum
UNIX timestamp of invitation date.
-
#joinDate ⇒ Fixnum
UNIX timestamp of join date.
-
#playerId ⇒ Fixnum
summoner ID of the member.
-
#status ⇒ String
status of the team member.
Instance Method Summary collapse
-
#initialize(data) ⇒ Member
constructor
A new instance of Member.
Constructor Details
#initialize(data) ⇒ Member
Returns a new instance of Member.
65 66 67 68 69 70 |
# File 'lib/sightstone/team.rb', line 65 def initialize(data) @joinDate = data['joinDate'] @inviteDate = data['inviteDate'] @status = data['status'] @playerId = data['playerId'] end |
Instance Attribute Details
#inviteDate ⇒ Fixnum
UNIX timestamp of invitation date
63 64 65 |
# File 'lib/sightstone/team.rb', line 63 def inviteDate @inviteDate end |
#joinDate ⇒ Fixnum
UNIX timestamp of join date
63 64 65 |
# File 'lib/sightstone/team.rb', line 63 def joinDate @joinDate end |
#playerId ⇒ Fixnum
summoner ID of the member
63 64 65 |
# File 'lib/sightstone/team.rb', line 63 def playerId @playerId end |
#status ⇒ String
status of the team member
63 64 65 |
# File 'lib/sightstone/team.rb', line 63 def status @status end |