elvarg 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/hiscores/player.rb +16 -3
- data/lib/hiscores/skill.rb +3 -3
- data/lib/stats/skill.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 920aa0f27b24660146ba4847ce33976ce2d03ac6dd153791a98c78964053f471
|
4
|
+
data.tar.gz: 2c3c1a4ab8ff241ced853da44e3daffe1541a1caa46e3fed19d68f6d3d53dc88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab9bf0cdb8cdc83f1dbd3b4df0d0be24735b00f67d557eb5d22eb40afadd58c2c0a68316aff804b12b77aefb3a884e395fdbcd4532642e97b69dd3818437c3e7
|
7
|
+
data.tar.gz: 12309a4c49b83f480eabf428fd8a6d61eb9eb33bfc688ee1d4043b32d2330e30ba4851c69bc1ee0da0cc45d666b222c0d7c728dc4f0b0bf5f78f8a78972819a6
|
data/lib/hiscores/player.rb
CHANGED
@@ -8,13 +8,26 @@ module Elvarg #:nodoc:
|
|
8
8
|
# Represents a Player on the Hiscores
|
9
9
|
class Player
|
10
10
|
include Elvarg::Stats
|
11
|
-
# The Player's username
|
11
|
+
# [String] The Player's username
|
12
|
+
#
|
13
|
+
# @example A player named "ruby"
|
14
|
+
# player = Elvarg::Hiscores::Player.new 'ruby'
|
15
|
+
# player.username #=> "ruby"
|
12
16
|
attr_reader :username
|
13
|
-
# The Hiscore's mode.
|
17
|
+
# [Symbol] The Hiscore's mode.
|
14
18
|
# This can be :default, :ironman, :ultimate, etc.
|
19
|
+
#
|
15
20
|
# @see Hiscores::MODES for complete list
|
16
21
|
attr_reader :mode
|
17
|
-
#
|
22
|
+
# [Hash] All Stats available in OldSchool Runescape's Hiscores
|
23
|
+
#
|
24
|
+
# @example Information on a Player's overall skill
|
25
|
+
# player = Elvarg::Hiscores::Player.new 'example'
|
26
|
+
# player.skills #=> { ... } a Hash will all the skills' data
|
27
|
+
# player.skills[:overall] #=> Overall skill
|
28
|
+
#
|
29
|
+
# @see Elvarg::Stats::SKILLS Complete list of skills
|
30
|
+
# @see Elvarg::Hiscores::Skill
|
18
31
|
attr_reader :skills
|
19
32
|
|
20
33
|
##
|
data/lib/hiscores/skill.rb
CHANGED
@@ -5,11 +5,11 @@ module Elvarg #:nodoc:
|
|
5
5
|
##
|
6
6
|
# Represents a Skill on the Hiscores
|
7
7
|
class Skill < Stats::Skill
|
8
|
-
# The rank of the Skill the Player has on the Hiscores
|
8
|
+
# [Integer] The rank of the Skill the Player has on the Hiscores
|
9
9
|
attr_reader :rank
|
10
|
-
# The level of the Skill the Player has on the Hiscores
|
10
|
+
# [Integer] The level of the Skill the Player has on the Hiscores
|
11
11
|
attr_reader :level
|
12
|
-
# The experience of the Skill the Player has on the Hiscores
|
12
|
+
# [Integer] The experience of the Skill the Player has on the Hiscores
|
13
13
|
attr_reader :exp
|
14
14
|
|
15
15
|
##
|
data/lib/stats/skill.rb
CHANGED
@@ -5,14 +5,14 @@ module Elvarg #:nodoc:
|
|
5
5
|
##
|
6
6
|
# Represents a Skill in OldSchool RuneScape
|
7
7
|
class Skill
|
8
|
-
# The link to the `.gif` of the related Skill
|
8
|
+
# [String] The link to the `.gif` of the related Skill
|
9
9
|
attr_reader :icon
|
10
|
-
# The unique id of this Skill
|
10
|
+
# [Integer] The unique id of this Skill
|
11
11
|
attr_reader :id
|
12
|
-
# The human readable name of this Skill
|
12
|
+
# [String] The human readable name of this Skill
|
13
13
|
attr_reader :name
|
14
14
|
##
|
15
|
-
# The symbol of this Skill
|
15
|
+
# [Symbol] The symbol of this Skill
|
16
16
|
# @see Elvarg::Stats::SKILLS for list of symbols
|
17
17
|
attr_reader :symbol
|
18
18
|
|