Class: LeagueOfLegends::DTO::TeamMemberInfo
- Inherits:
-
Object
- Object
- LeagueOfLegends::DTO::TeamMemberInfo
- Defined in:
- lib/league_of_legends/dto/team_member_info.rb
Instance Attribute Summary collapse
-
#invite_date ⇒ Object
readonly
Returns the value of attribute invite_date.
-
#join_date ⇒ Object
readonly
Returns the value of attribute join_date.
-
#player_id ⇒ Object
readonly
Returns the value of attribute player_id.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes) ⇒ TeamMemberInfo
constructor
A new instance of TeamMemberInfo.
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_date ⇒ Object (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_date ⇒ Object (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_id ⇒ Object (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 |
#status ⇒ Object (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
.version ⇒ Object
5 6 7 |
# File 'lib/league_of_legends/dto/team_member_info.rb', line 5 def self.version ::LeagueOfLegends::DTO::Team.version end |