Class: Sightstone::Member

Inherits:
Object
  • Object
show all
Defined in:
lib/sightstone/team.rb

Overview

member of a team

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#inviteDateFixnum

UNIX timestamp of invitation date

Returns:

  • (Fixnum)

    the current value of inviteDate



63
64
65
# File 'lib/sightstone/team.rb', line 63

def inviteDate
  @inviteDate
end

#joinDateFixnum

UNIX timestamp of join date

Returns:

  • (Fixnum)

    the current value of joinDate



63
64
65
# File 'lib/sightstone/team.rb', line 63

def joinDate
  @joinDate
end

#playerIdFixnum

summoner ID of the member

Returns:

  • (Fixnum)

    the current value of playerId



63
64
65
# File 'lib/sightstone/team.rb', line 63

def playerId
  @playerId
end

#statusString

status of the team member

Returns:

  • (String)

    the current value of status



63
64
65
# File 'lib/sightstone/team.rb', line 63

def status
  @status
end