infostrada 0.1.21 → 0.1.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/infostrada/team_info.rb +3 -2
- data/lib/infostrada/team_request.rb +1 -1
- data/lib/infostrada/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTYzMjAxZTJmOWQ2ODYzYTZhZjUwZmZmYTlkYjdhNWQxOTQ0ZTQ3NA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzBjYzY2ZGMzYzg2ZGE2NzJjZmU4YWYwNzhlNGEzOTFlNGM4MzhlZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWViMTNmNTMwOTcyNmEwMzNkMTY2NjIzNjNmNmY5NWQ5NzMyZDAyYzNjYjg4
|
10
|
+
N2ExNWRkNjgzZGNiMzRiMGRmNTUwM2ZjNmU4NmUxNzU4ZTEyNTE0MWVlOWVk
|
11
|
+
OWU5ZDE0Zjk1MjNiYTczNTRiMDJhYzkyZTQzZGRjMDA2ZDllMzQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWY4NWNkODQ5ZTU1NjhjMGI2MzMyNThlZDE2YzFjMzI1YmVjODgzYjY4ODkw
|
14
|
+
ZDg1NzIzOTlkZDQ1NjE0YWQ2ZTgxMDhhN2QxNDU2MDZmYzdiNTE2ZGU2Yjg4
|
15
|
+
ZmEyNmE4Y2FjMDJmODEwNjk0NzBkMWU4ZDE2OTg3NzAxZWI5YTc=
|
data/lib/infostrada/team_info.rb
CHANGED
@@ -4,17 +4,18 @@ module Infostrada
|
|
4
4
|
class TeamInfo < Infostrada::BaseRequest
|
5
5
|
attr_accessor :official_name, :official_short_name, :public_name, :public_short_name, :nickname
|
6
6
|
attr_accessor :foundation_date, :official_stadium_name, :stadium_name, :stadium_capacity
|
7
|
-
attr_accessor :url, :city, :country, :country_short_name
|
7
|
+
attr_accessor :url, :city, :country, :country_short_name, :id
|
8
8
|
|
9
9
|
URL = '/GetTeamInfo'
|
10
10
|
|
11
11
|
def self.fetch(team_id)
|
12
12
|
info_hash = get!(URL, query: { teamid: team_id.to_i })
|
13
13
|
|
14
|
-
info_hash.first ? self.new(info_hash.first) : nil
|
14
|
+
info_hash.first ? self.new(info_hash.first.merge({ 'teamid' => team_id.to_i })) : nil
|
15
15
|
end
|
16
16
|
|
17
17
|
def initialize(hash)
|
18
|
+
@id = hash['teamid']
|
18
19
|
@official_name = hash['c_OfficialName']
|
19
20
|
@official_short_name = hash['c_OfficialNameSort']
|
20
21
|
@public_name = hash['c_PublicName']
|
data/lib/infostrada/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infostrada
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Otero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -257,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
257
257
|
version: '0'
|
258
258
|
requirements: []
|
259
259
|
rubyforge_project:
|
260
|
-
rubygems_version: 2.
|
260
|
+
rubygems_version: 2.4.2
|
261
261
|
signing_key:
|
262
262
|
specification_version: 4
|
263
263
|
summary: Infostrada Football API wrapper.
|