Sha256: cfe6c1a19a6da52252972d7aff815d0327060a9849a4184eedc00d5cc114d065
Contents?: true
Size: 963 Bytes
Versions: 27
Compression:
Stored size: 963 Bytes
Contents
module Lol class Summoner < Model # @!attribute [r] id # @return [String] attr_reader :id # @!attribute [r] name # @return [String] Summoner Name attr_reader :name # @!attribute [r] profile_icon_id # @return [String] Id of the profile icon. No way to get the icon out for now attr_reader :profile_icon_id # @!attribute [r] revision_date # @return [Time] Last date of summoner profile revision attr_reader :revision_date # @!attribute [r] revision_date_str # @return [String] Human readable string representing date of summoner profile revision attr_reader :revision_date_str # @!attribute [r] summoner_level # @return [Numeric] 1-30 attr_reader :summoner_level private attr_writer :id, :name, :profile_icon_id, :summoner_level, :revision_date_str def revision_date= value @revision_date = value.is_a?(Numeric) && Time.at(value / 1000) || value end end end
Version data entries
27 entries across 27 versions & 1 rubygems