mlb_gameday 0.0.1.alpha2 → 0.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 20b9c57b8372d771516dd33c460a2a371c480d40
4
- data.tar.gz: cb8bedb141d799e2ace98bb3b0b2e1441b4a79aa
3
+ metadata.gz: 44c62e0ba49a76a04d966d57d162ef34c05defa8
4
+ data.tar.gz: 6cd8d0677d05264ecb4758af5729d352f5444859
5
5
  SHA512:
6
- metadata.gz: 9522000213ce1cd10565ac360acb4628f4ba396e91830d1f1811ef67e7a2d84a949eb7ce1cd79b09bc8e97907a50a143efd51b87e0675036f8cbb9561189a506
7
- data.tar.gz: 3e9e3b8bd6208c3e03b7cb2ff51afdcfa6d0093d9dee758aaba551eef20b66488c0efb2d272baaa7321fb224c4a83fe84a0a5291a5a2483749d5d04b9a0f94ee
6
+ metadata.gz: 872e48a16c5bfbc8ab5d5633c549e4e14d7f808cefa43806c6e3c97947779bfc934fcf5ea49ebf009b29c7bcef3d8c6b7acec3f33006bf1ad91a561c0929fccc
7
+ data.tar.gz: 2d34ee614888daac58ca4d6bb1155f1456316fabcae184b537e67a468e34e61ad774e0ae56ce3dd3a48861b1b38d29f09241332cc73cdab3f90ae4e978ce71ce
@@ -1,10 +1,15 @@
1
1
  module MLBGameday
2
2
  class Player
3
- def initialize(api, data)
3
+ def initialize(api, id, data)
4
4
  @api = api
5
+ @id = id
5
6
  @data = data
6
7
  end
7
8
 
9
+ def id
10
+ @id
11
+ end
12
+
8
13
  protected
9
14
 
10
15
  def xpath(path)
@@ -1,3 +1,3 @@
1
1
  module MLBGameday
2
- VERSION = "0.0.1.alpha2"
2
+ VERSION = "0.0.1"
3
3
  end
data/lib/mlb_gameday.rb CHANGED
@@ -51,13 +51,13 @@ module MLBGameday
51
51
  def pitcher(id)
52
52
  return nil if id.empty?
53
53
 
54
- MLBGameday::Pitcher.new(self, fetch_pitcher_xml(id))
54
+ MLBGameday::Pitcher.new(self, id, fetch_pitcher_xml(id))
55
55
  end
56
56
 
57
57
  def batter(id)
58
58
  return nil if id.empty?
59
59
 
60
- MLBGameday::Batter.new(self, fetch_batter_xml(id))
60
+ MLBGameday::Batter.new(self, id, fetch_batter_xml(id))
61
61
  end
62
62
 
63
63
  def game(gid)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mlb_gameday
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.alpha2
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Hoffman
@@ -122,9 +122,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - '>'
125
+ - - '>='
126
126
  - !ruby/object:Gem::Version
127
- version: 1.3.1
127
+ version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
130
  rubygems_version: 2.0.3