elvarg 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hiscores/player.rb +7 -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: 783380f7cf39ce52fbad8a0b0a2f368be777c18b81f15ae1be7c060e59e165fd
|
4
|
+
data.tar.gz: fba3218c73c78b217915b756ad4dad0c5d1f72a48ff82a6ad6ac0b29b5b560c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e1e12705917008b83af3f84783f1501f096d57b3e69679d372ebd611e5a9f79de5fde22d7dc549011ce43dee02e4726214dd3ea5e23f92d7754bd3a36ca933a
|
7
|
+
data.tar.gz: 2c2d07c8b288cc14d60a769ea4977761e657a23c2841a565c1601c10d1474e92b70479b92748038a8e13e8c645386ebeb3e6c054c89cf2c0a81e8c809474300c
|
data/lib/hiscores/player.rb
CHANGED
@@ -8,18 +8,21 @@ module Elvarg #:nodoc:
|
|
8
8
|
# Represents a Player on the Hiscores
|
9
9
|
class Player
|
10
10
|
include Elvarg::Stats
|
11
|
-
#
|
11
|
+
# The Player's username
|
12
12
|
#
|
13
13
|
# @example A player named "ruby"
|
14
14
|
# player = Elvarg::Hiscores::Player.new 'ruby'
|
15
15
|
# player.username #=> "ruby"
|
16
|
+
#
|
17
|
+
# @return [String] The Player's username
|
16
18
|
attr_reader :username
|
17
|
-
#
|
19
|
+
# The Hiscore's mode.
|
18
20
|
# This can be :default, :ironman, :ultimate, etc.
|
19
21
|
#
|
20
22
|
# @see Hiscores::MODES for complete list
|
23
|
+
# @return [Symbol] The Hiscore's mode.
|
21
24
|
attr_reader :mode
|
22
|
-
#
|
25
|
+
# All Stats available in OldSchool Runescape's Hiscores
|
23
26
|
#
|
24
27
|
# @example Information on a Player's overall skill
|
25
28
|
# player = Elvarg::Hiscores::Player.new 'example'
|
@@ -28,6 +31,7 @@ module Elvarg #:nodoc:
|
|
28
31
|
#
|
29
32
|
# @see Elvarg::Stats::SKILLS Complete list of skills
|
30
33
|
# @see Elvarg::Hiscores::Skill
|
34
|
+
# @return [Hash] All Stats available in OldSchool Runescape's Hiscores
|
31
35
|
attr_reader :skills
|
32
36
|
|
33
37
|
##
|
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
|
-
# [Integer] The rank of the Skill the Player has on the Hiscores
|
8
|
+
# @return [Integer] The rank of the Skill the Player has on the Hiscores
|
9
9
|
attr_reader :rank
|
10
|
-
# [Integer] The level of the Skill the Player has on the Hiscores
|
10
|
+
# @return [Integer] The level of the Skill the Player has on the Hiscores
|
11
11
|
attr_reader :level
|
12
|
-
# [Integer] The experience of the Skill the Player has on the Hiscores
|
12
|
+
# @return [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
|
-
# [String] The link to the `.gif` of the related Skill
|
8
|
+
# @return [String] The link to the `.gif` of the related Skill
|
9
9
|
attr_reader :icon
|
10
|
-
# [Integer] The unique id of this Skill
|
10
|
+
# @return [Integer] The unique id of this Skill
|
11
11
|
attr_reader :id
|
12
|
-
# [String] The human readable name of this Skill
|
12
|
+
# @return [String] The human readable name of this Skill
|
13
13
|
attr_reader :name
|
14
14
|
##
|
15
|
-
# [Symbol] The symbol of this Skill
|
15
|
+
# @return [Symbol] The symbol of this Skill
|
16
16
|
# @see Elvarg::Stats::SKILLS for list of symbols
|
17
17
|
attr_reader :symbol
|
18
18
|
|