alch 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/alch/item.rb +21 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b9e7f1c21784359e569b3f96848aec0b4d571d3
4
- data.tar.gz: 4dbe04f0616f9ebd3620d6c5c60de0b28a68de3d
3
+ metadata.gz: a5a717f09f3e3633f57ceba0a5af9231d80b7d82
4
+ data.tar.gz: 379058d588d603e5f32da3b8c17f57c5828f4b20
5
5
  SHA512:
6
- metadata.gz: 55c9b66903670980a0ebbfc17e416a095c6531ce6b2a25c4e8988f097d0b9746bfad67b5cfc15702bddcee82613c1c3b20285c7a947bd9562b37792439bef2c0
7
- data.tar.gz: 0fda3f039f1c6a7b1b94c2afe0bc896815590bf8749d886d02baa222981a574e6d56b86a547ea0b6db5d6fb8576296df6d56144b2e5d51956c969d5c34311267
6
+ metadata.gz: f60af9f47e4c4bb6f267b64f0e6d3065d4ba5aad255167d330deb80d28e722b19ae5bad8a1b979a23c94a2d5eaf070a5059a5ba3341afcb4d761851c08975817
7
+ data.tar.gz: 06c939bd88d4d9de6fcfed86819fafae9dbe216ca7313ae745ff7ce4c7f7185afdaa75004e3baa96e2111c1034c0012107020cc00025fcc13e5cb75c5a50fda3
data/README.md CHANGED
@@ -47,4 +47,4 @@ puts item.high_alch - (item.price + nature_rune.price)
47
47
  ```
48
48
 
49
49
  # Full Documentation
50
- [View the Full Documentation](http://www.rubydoc.info/gems/alch/1.0.0)
50
+ [View the Full Documentation](http://www.rubydoc.info/gems/alch/1.1.0)
@@ -7,8 +7,27 @@ require('net/http')
7
7
  #
8
8
  # @author Marcello A. Sabino
9
9
  class Item
10
- attr_reader :id, :name, :price, :store_price,
11
- :low_alch, :high_alch, :image
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcello A. Sabino