Class: LeagueOfLegends::DTO::TeamMemberInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/league_of_legends/dto/team_member_info.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ TeamMemberInfo

Returns a new instance of TeamMemberInfo.



11
12
13
14
15
16
17
18
# File 'lib/league_of_legends/dto/team_member_info.rb', line 11

def initialize attributes
  return if attributes.nil?

  @join_date = Time.at(attributes[:joinDate]/1000)
  @invite_date = Time.at(attributes[:inviteDate]/1000)
  @status = attributes[:status]
  @player_id = attributes[:playerId]
end

Instance Attribute Details

#invite_dateObject (readonly)

Returns the value of attribute invite_date.



9
10
11
# File 'lib/league_of_legends/dto/team_member_info.rb', line 9

def invite_date
  @invite_date
end

#join_dateObject (readonly)

Returns the value of attribute join_date.



9
10
11
# File 'lib/league_of_legends/dto/team_member_info.rb', line 9

def join_date
  @join_date
end

#player_idObject (readonly)

Returns the value of attribute player_id.



9
10
11
# File 'lib/league_of_legends/dto/team_member_info.rb', line 9

def player_id
  @player_id
end

#statusObject (readonly)

Returns the value of attribute status.



9
10
11
# File 'lib/league_of_legends/dto/team_member_info.rb', line 9

def status
  @status
end

Class Method Details

.versionObject



5
6
7
# File 'lib/league_of_legends/dto/team_member_info.rb', line 5

def self.version
  ::LeagueOfLegends::DTO::Team.version
end