alch 1.0.1 → 1.1.0
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/README.md +1 -1
- data/lib/alch/item.rb +21 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5a717f09f3e3633f57ceba0a5af9231d80b7d82
|
4
|
+
data.tar.gz: 379058d588d603e5f32da3b8c17f57c5828f4b20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f60af9f47e4c4bb6f267b64f0e6d3065d4ba5aad255167d330deb80d28e722b19ae5bad8a1b979a23c94a2d5eaf070a5059a5ba3341afcb4d761851c08975817
|
7
|
+
data.tar.gz: 06c939bd88d4d9de6fcfed86819fafae9dbe216ca7313ae745ff7ce4c7f7185afdaa75004e3baa96e2111c1034c0012107020cc00025fcc13e5cb75c5a50fda3
|
data/README.md
CHANGED
data/lib/alch/item.rb
CHANGED
@@ -7,8 +7,27 @@ require('net/http')
|
|
7
7
|
#
|
8
8
|
# @author Marcello A. Sabino
|
9
9
|
class Item
|
10
|
-
|
11
|
-
|
10
|
+
# Returns the id of the item
|
11
|
+
# @return [Integer] the item's id
|
12
|
+
attr_reader :id
|
13
|
+
# Returns the item's name
|
14
|
+
# @return [String] the item's name
|
15
|
+
attr_reader :name
|
16
|
+
# Returns the Grand Exchange price of the item
|
17
|
+
# @return [Integer] the Grand Exchange's price
|
18
|
+
attr_reader :price
|
19
|
+
# Returns the store's price of the item
|
20
|
+
# @return [Integer] the store's price
|
21
|
+
attr_reader :store_price
|
22
|
+
# Returns the gold pieces from low alching the item
|
23
|
+
# @return [Integer] the amount of GP from low alching
|
24
|
+
attr_reader :low_alch
|
25
|
+
# Returns the golf pieces from high alching the item
|
26
|
+
# @return [Integer] the amount of GP from high alching
|
27
|
+
attr_reader :high_alch
|
28
|
+
# Returns the image url of the item as a string.
|
29
|
+
# @return [String] the image url of the item, on Runescape.com
|
30
|
+
attr_reader :image
|
12
31
|
|
13
32
|
# Creates a new Item object
|
14
33
|
# @param [Integer] id - the id of the Item
|