nba_rb 0.1.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a43a1048be89307bc7e2248c0f44b3b9b452af16
4
+ data.tar.gz: 4cb215da50b5636aca1c8d92862c0abb32622e4e
5
+ SHA512:
6
+ metadata.gz: 2a9ae39181794d439712b9b2db2b93e94b07ab9ad81c2c57b82a518c11a6ef8ccf326daa033d931cc61bdbca5fb1baa0a7f6ebe16b8dcb06bcda33f9ec49bbeb
7
+ data.tar.gz: eeeb2f5944a96c6b84fb28b2a3042bc15056d2f038f7206ae0d2d5acddd37ac20f14c25a752b106c67a0c90a920e72ea6664f967e20313eeb7f0bbc602f376bc
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.0
4
+ before_install: gem install bundler -v 1.11.2
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at fana@alessiofanelli.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in nba_rb.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Alessio Fanelli
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,41 @@
1
+ # NbaRb
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/nba_rb`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'nba_rb'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install nba_rb
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/nba_rb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
7
+
8
+ task :console do
9
+ exec "irb -r nba_rb -I ./lib"
10
+ end
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "nba_rb"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,5 @@
1
+ module Initializable
2
+ def initialize(params = {})
3
+ params.each { |key, value| send "#{key}=", value }
4
+ end
5
+ end
@@ -0,0 +1,13 @@
1
+ module StatsHash
2
+ def create_stats_hash(data)
3
+ stats = []
4
+ data['rowSet'].each do |row|
5
+ row_hash = {}
6
+ data['headers'].each_with_index do |header, index|
7
+ row_hash[header] = row[index]
8
+ end
9
+ stats << row_hash
10
+ end
11
+ stats
12
+ end
13
+ end
@@ -0,0 +1,12 @@
1
+ module StatsRequest
2
+ def stats_request(endpoint, params)
3
+ res = HTTParty.get(NbaRb::BASE_URL + endpoint,
4
+ query: params,
5
+ headers: { 'Content-Type' => 'application/json',
6
+ 'Accept' => 'application/json'
7
+ }
8
+ )
9
+
10
+ res.parsed_response
11
+ end
12
+ end
@@ -0,0 +1,16 @@
1
+ require 'helpers/initialize'
2
+ require 'helpers/stats_hash'
3
+ require 'httparty'
4
+ require 'helpers/stats_request'
5
+ require 'nba_rb/version'
6
+ require 'nba_rb/constants'
7
+ require 'nba_rb/game'
8
+ require 'nba_rb/player'
9
+ require 'nba_rb/team'
10
+ require 'net/http'
11
+ require 'json'
12
+
13
+ module NbaRb
14
+ BASE_URL = 'http://stats.nba.com/stats/'
15
+ CURRENT_SEASON = '2015-16'
16
+ end
@@ -0,0 +1,718 @@
1
+ class League
2
+ class << self
3
+ attr_accessor :default, :NBA
4
+ end
5
+
6
+ @NBA = '00'
7
+ @default = @NBA
8
+ end
9
+
10
+ class PerMode
11
+ class << self
12
+ attr_accessor :totals,
13
+ :per_game,
14
+ :minutes_per,
15
+ :per_48,
16
+ :per_40,
17
+ :per_36,
18
+ :per_minute,
19
+ :per_possession,
20
+ :per_play,
21
+ :per_100_possessions,
22
+ :per_100_plays,
23
+ :default
24
+ end
25
+
26
+ @totals = 'Totals'
27
+ @per_game = 'PerGame'
28
+ @minutes_per = 'MinutesPer'
29
+ @per_48 = 'Per48'
30
+ @per_40 = 'Per40'
31
+ @per_36 = 'Per36'
32
+ @per_minute = 'PerMinute'
33
+ @per_possession = 'PerPossession'
34
+ @per_play = 'PerPlay'
35
+ @per_100_possessions = 'Per100Possessions'
36
+ @per_100_plays = 'Per100Plays'
37
+ @default = @per_game
38
+ end
39
+
40
+ class SeasonType
41
+ class << self
42
+ attr_accessor :default,
43
+ :playoffs,
44
+ :regular
45
+ end
46
+
47
+ @regular = 'Regular Season'
48
+ @playoffs = 'Playoffs'
49
+ @default = @regular
50
+ end
51
+
52
+ class MeasureType
53
+ class << self
54
+ attr_accessor :default,
55
+ :advanced,
56
+ :base,
57
+ :misc,
58
+ :four_factors,
59
+ :scoring,
60
+ :opponent,
61
+ :usage
62
+ end
63
+
64
+ @base = 'Base'
65
+ @advanced = 'Advanced'
66
+ @misc = 'Misc'
67
+ @four_factors = 'Four Factors'
68
+ @scoring = 'Scoring'
69
+ @opponent = 'Opponent'
70
+ @usage = 'Usage'
71
+ @default = @base
72
+ end
73
+
74
+ class GroupQuantity
75
+ class << self
76
+ attr_accessor :default
77
+ end
78
+
79
+ @default = 5
80
+ end
81
+
82
+ class Outcome
83
+ class << self
84
+ attr_accessor :default, :win, :loss
85
+ end
86
+
87
+ @default = ''
88
+ @win = 'W'
89
+ @loss = 'L'
90
+ end
91
+
92
+ class Location
93
+ class << self
94
+ attr_accessor :default, :home, :away
95
+ end
96
+
97
+ @default = ''
98
+ @home = 'Home'
99
+ @away = 'Away'
100
+ end
101
+
102
+ class SeasonSegment
103
+ class << self
104
+ attr_accessor :default,
105
+ :entire_season,
106
+ :pre_all_star,
107
+ :post_all_star
108
+ end
109
+ @default = ''
110
+
111
+ @entire_season = ''
112
+ @pre_all_star = 'Pre All-Star'
113
+ @post_all_star = 'Post All-Star'
114
+ end
115
+
116
+ class DateFrom
117
+ class << self
118
+ attr_accessor :default
119
+ end
120
+
121
+ @default = ''
122
+ end
123
+
124
+ class DateTo
125
+ class << self
126
+ attr_accessor :default
127
+ end
128
+
129
+ @default = ''
130
+ end
131
+
132
+ class VsConference
133
+ class << self
134
+ attr_accessor :default, :all, :east, :west
135
+ end
136
+
137
+ @default = ''
138
+ @all = ''
139
+ @east = 'East'
140
+ @west = 'West'
141
+ end
142
+
143
+ class VsDivision
144
+ class << self
145
+ attr_accessor :default,
146
+ :all,
147
+ :atlantic,
148
+ :central,
149
+ :northwest,
150
+ :pacific,
151
+ :southeast,
152
+ :southwest
153
+ end
154
+
155
+ @default = ''
156
+ @all = ''
157
+ @atlantic = 'Atlantic'
158
+ @central = 'Central'
159
+ @northwest = 'Northwest'
160
+ @pacific = 'Pacific'
161
+ @southeast = 'Southeast'
162
+ @southwest = 'Southwest'
163
+ end
164
+
165
+ class GameSegment
166
+ class << self
167
+ attr_accessor :default,
168
+ :entire_game,
169
+ :first_half,
170
+ :second_half,
171
+ :overtime
172
+ end
173
+
174
+ @default = ''
175
+ @entire_game = ''
176
+ @first_half = 'First Half'
177
+ @second_half = 'Second Half'
178
+ @overtime = 'Overtime'
179
+ end
180
+
181
+ class ShotClockRange
182
+ class << self
183
+ attr_accessor :default,
184
+ :all_ranges,
185
+ :shot_clock_off
186
+ end
187
+
188
+ @default = ''
189
+ @all_ranges = ''
190
+ @shot_clock_off = 'ShotClock Off'
191
+
192
+ def get(n)
193
+ if n > 24 or n < 0
194
+ return ''
195
+ elsif 22 <= n <= 24
196
+ return '24-22'
197
+ elsif 18 <= n < 22
198
+ return '22-18 Very Early'
199
+ elsif 15 <= n < 18
200
+ return '18-15 Early'
201
+ elsif 7 <= n < 15
202
+ return '15-7 Average'
203
+ elsif 4 <= n < 7
204
+ return '7-4 Late'
205
+ elsif 0 <= n < 4
206
+ return '4-0 Very Late'
207
+ end
208
+ end
209
+ end
210
+
211
+ class PlusMinus
212
+ class << self
213
+ attr_accessor :default
214
+ end
215
+
216
+ @default = 'N'
217
+ end
218
+
219
+ class PaceAdjust
220
+ class << self
221
+ attr_accessor :default
222
+ end
223
+
224
+ @default = 'N'
225
+ end
226
+
227
+ class Rank
228
+ class << self
229
+ attr_accessor :default
230
+ end
231
+
232
+ @default = 'N'
233
+ end
234
+
235
+ class OpponentTeamID
236
+ class << self
237
+ attr_accessor :default
238
+ end
239
+
240
+ @default = '0'
241
+ end
242
+
243
+ class Period
244
+ class << self
245
+ attr_accessor :default,
246
+ :all_quarters,
247
+ :first_quarter,
248
+ :second_quarter,
249
+ :third_quarter,
250
+ :fourth_quarter
251
+ end
252
+
253
+ @default = '0'
254
+ @all_quarters = '0'
255
+ @first_quarter = '1'
256
+ @second_quarter = '2'
257
+ @third_quarter = '3'
258
+ @fourth_quarter = '4'
259
+
260
+ def overtime(n)
261
+ str(4 + n)
262
+ end
263
+ end
264
+
265
+ class LastNGames
266
+ class << self
267
+ attr_accessor :default
268
+ end
269
+
270
+ @default = '0'
271
+ end
272
+
273
+
274
+ class PlayoffRound
275
+ class << self
276
+ attr_accessor :default,
277
+ :all,
278
+ :quarter_finals,
279
+ :semi_finals,
280
+ :conference_finals,
281
+ :finals
282
+ end
283
+
284
+ @default = '0'
285
+ @all = '0'
286
+ @quarter_finals = '1'
287
+ @semi_finals = '2'
288
+ @conference_finals = '3'
289
+ @finals = '4'
290
+ end
291
+
292
+ class Month
293
+ class << self
294
+ attr_accessor :default,
295
+ :all,
296
+ :october,
297
+ :november,
298
+ :december,
299
+ :january,
300
+ :february,
301
+ :march,
302
+ :april,
303
+ :may,
304
+ :june,
305
+ :july,
306
+ :august,
307
+ :september
308
+ end
309
+
310
+ @default = '0'
311
+ @all = '0'
312
+ @october = '1'
313
+ @november = '2'
314
+ @december = '3'
315
+ @january = '4'
316
+ @february = '5'
317
+ @march = '6'
318
+ @april = '7'
319
+ @may = '8'
320
+ @june = '9'
321
+ @july = '10'
322
+ @august = '11'
323
+ @september = '12'
324
+ end
325
+
326
+ class RangeType
327
+ class << self
328
+ attr_accessor :default
329
+ end
330
+
331
+ @default = '0'
332
+ end
333
+
334
+ class StartRange
335
+ class << self
336
+ attr_accessor :default
337
+ end
338
+
339
+ @default = '0'
340
+ end
341
+
342
+ class EndRange
343
+ class << self
344
+ attr_accessor :default
345
+ end
346
+
347
+ @default = '0'
348
+ end
349
+
350
+ class StartPeriod < Period
351
+ end
352
+
353
+ class EndPeriod < Period
354
+ end
355
+
356
+ TEAMS = {
357
+ 'ATL' => {
358
+ 'abbr' => 'ATL',
359
+ 'city' => 'Atlanta',
360
+ 'code' => 'hawks',
361
+ 'conference' => 'Eastern',
362
+ 'displayAbbr' => 'ATL',
363
+ 'displayConference' => 'Eastern',
364
+ 'division' => 'Southeast',
365
+ 'id' => '1610612737',
366
+ 'name' => 'Hawks',
367
+ 'color' => 'E2373E',
368
+ 'colors' => ['E2373E', '002A5C', 'BAC4CA']
369
+ }, 'BOS' => {
370
+ 'abbr' => 'BOS',
371
+ 'city' => 'Boston',
372
+ 'code' => 'celtics',
373
+ 'conference' => 'Eastern',
374
+ 'displayAbbr' => 'BOS',
375
+ 'displayConference' => 'Eastern',
376
+ 'division' => 'Atlantic',
377
+ 'id' => '1610612738',
378
+ 'name' => 'Celtics',
379
+ 'color' => '007239',
380
+ 'colors' => ['007239', 'AE8445', '982527', '000000']
381
+ }, 'BKN' => {
382
+ 'abbr' => 'BKN',
383
+ 'city' => 'Brooklyn',
384
+ 'code' => 'nets',
385
+ 'conference' => 'Eastern',
386
+ 'displayAbbr' => 'BKN',
387
+ 'displayConference' => 'Eastern',
388
+ 'division' => 'Atlantic',
389
+ 'id' => '1610612751',
390
+ 'name' => 'Nets',
391
+ 'color' => '000000',
392
+ 'colors' => ['000000', 'FFFFFF']
393
+ }, 'CHA' => {
394
+ 'abbr' => 'CHA',
395
+ 'city' => 'Charlotte',
396
+ 'code' => 'hornets',
397
+ 'conference' => 'Eastern',
398
+ 'displayAbbr' => 'CHA',
399
+ 'displayConference' => 'Eastern',
400
+ 'division' => 'Southeast',
401
+ 'id' => '1610612766',
402
+ 'name' => 'Hornets',
403
+ 'color' => '00848E',
404
+ 'colors' => ['00848E', '260F54', 'CCCCCC']
405
+ }, 'CHI' => {
406
+ 'abbr' => 'CHI',
407
+ 'city' => 'Chicago',
408
+ 'code' => 'bulls',
409
+ 'conference' => 'Eastern',
410
+ 'displayAbbr' => 'CHI',
411
+ 'displayConference' => 'Eastern',
412
+ 'division' => 'Central',
413
+ 'id' => '1610612741',
414
+ 'name' => 'Bulls',
415
+ 'color' => 'C60033',
416
+ 'colors' => ['C60033', '000000']
417
+ }, 'CLE' => {
418
+ 'abbr' => 'CLE',
419
+ 'city' => 'Cleveland',
420
+ 'code' => 'cavaliers',
421
+ 'conference' => 'Eastern',
422
+ 'displayAbbr' => 'CLE',
423
+ 'displayConference' => 'Eastern',
424
+ 'division' => 'Central',
425
+ 'id' => '1610612739',
426
+ 'name' => 'Cavaliers',
427
+ 'color' => '860038',
428
+ 'colors' => ['860038', '002D62', 'FDBA31']
429
+ }, 'DAL' => {
430
+ 'abbr' => 'DAL',
431
+ 'city' => 'Dallas',
432
+ 'code' => 'mavericks',
433
+ 'conference' => 'Western',
434
+ 'displayAbbr' => 'DAL',
435
+ 'displayConference' => 'Western',
436
+ 'division' => 'Southwest',
437
+ 'id' => '1610612742',
438
+ 'name' => 'Mavericks',
439
+ 'color' => '0063AF',
440
+ 'colors' => ['0063AF', 'BAC4CA', '000000']
441
+ }, 'DEN' => {
442
+ 'abbr' => 'DEN',
443
+ 'city' => 'Denver',
444
+ 'code' => 'nuggets',
445
+ 'conference' => 'Western',
446
+ 'displayAbbr' => 'DEN',
447
+ 'displayConference' => 'Western',
448
+ 'division' => 'Northwest',
449
+ 'id' => '1610612743',
450
+ 'name' => 'Nuggets',
451
+ 'color' => '559FD6',
452
+ 'colors' => ['559FD6', '006BB7', 'FEA927']
453
+ }, 'DET' => {
454
+ 'abbr' => 'DET',
455
+ 'city' => 'Detroit',
456
+ 'code' => 'pistons',
457
+ 'conference' => 'Eastern',
458
+ 'displayAbbr' => 'DET',
459
+ 'displayConference' => 'Eastern',
460
+ 'division' => 'Central',
461
+ 'id' => '1610612765',
462
+ 'name' => 'Pistons',
463
+ 'color' => 'EC003D',
464
+ 'colors' => ['EC003D', '0058A6', '001D4A']
465
+ }, 'GSW' => {
466
+ 'abbr' => 'GSW',
467
+ 'city' => 'Golden State',
468
+ 'code' => 'warriors',
469
+ 'conference' => 'Western',
470
+ 'displayAbbr' => 'GSW',
471
+ 'displayConference' => 'Western',
472
+ 'division' => 'Pacific',
473
+ 'id' => '1610612744',
474
+ 'name' => 'Warriors',
475
+ 'color' => '0068B3',
476
+ 'colors' => ['0068B3', 'FFC423']
477
+ }, 'HOU' => {
478
+ 'abbr' => 'HOU',
479
+ 'city' => 'Houston',
480
+ 'code' => 'rockets',
481
+ 'conference' => 'Western',
482
+ 'displayAbbr' => 'HOU',
483
+ 'displayConference' => 'Western',
484
+ 'division' => 'Southwest',
485
+ 'id' => '1610612745',
486
+ 'name' => 'Rockets',
487
+ 'color' => 'C60033',
488
+ 'colors' => ['C60033', '000000']
489
+ }, 'IND' => {
490
+ 'abbr' => 'IND',
491
+ 'city' => 'Indiana',
492
+ 'code' => 'pacers',
493
+ 'conference' => 'Eastern',
494
+ 'displayAbbr' => 'IND',
495
+ 'displayConference' => 'Eastern',
496
+ 'division' => 'Central',
497
+ 'id' => '1610612754',
498
+ 'name' => 'Pacers',
499
+ 'color' => '001D4A',
500
+ 'colors' => ['001D4A', 'FEAC2D', 'B0B2B5']
501
+ }, 'LAC' => {
502
+ 'abbr' => 'LAC',
503
+ 'city' => 'Los Angeles',
504
+ 'code' => 'clippers',
505
+ 'conference' => 'Western',
506
+ 'displayAbbr' => 'LAC',
507
+ 'displayConference' => 'Western',
508
+ 'division' => 'Pacific',
509
+ 'id' => '1610612746',
510
+ 'name' => 'Clippers',
511
+ 'color' => '00559A',
512
+ 'colors' => ['00559A', 'EC003D']
513
+ }, 'LAL' => {
514
+ 'abbr' => 'LAL',
515
+ 'city' => 'Los Angeles',
516
+ 'code' => 'lakers',
517
+ 'conference' => 'Western',
518
+ 'displayAbbr' => 'LAL',
519
+ 'displayConference' => 'Western',
520
+ 'division' => 'Pacific',
521
+ 'id' => '1610612747',
522
+ 'name' => 'Lakers',
523
+ 'color' => 'FEA927',
524
+ 'colors' => ['FEA927', '42186E', '000000']
525
+ }, 'MEM' => {
526
+ 'abbr' => 'MEM',
527
+ 'city' => 'Memphis',
528
+ 'code' => 'grizzlies',
529
+ 'conference' => 'Western',
530
+ 'displayAbbr' => 'MEM',
531
+ 'displayConference' => 'Western',
532
+ 'division' => 'Southwest',
533
+ 'id' => '1610612763',
534
+ 'name' => 'Grizzlies',
535
+ 'color' => '182A48',
536
+ 'colors' => ['182A48', '4C78AD', 'FEA927', 'AAC8E5']
537
+ }, 'MIA' => {
538
+ 'abbr' => 'MIA',
539
+ 'city' => 'Miami',
540
+ 'code' => 'heat',
541
+ 'conference' => 'Eastern',
542
+ 'displayAbbr' => 'MIA',
543
+ 'displayConference' => 'Eastern',
544
+ 'division' => 'Southeast',
545
+ 'id' => '1610612748',
546
+ 'name' => 'Heat',
547
+ 'color' => '98002E',
548
+ 'colors' => ['98002E', 'F88D1D', '000000']
549
+ }, 'MIL' => {
550
+ 'abbr' => 'MIL',
551
+ 'city' => 'Milwaukee',
552
+ 'code' => 'bucks',
553
+ 'conference' => 'Eastern',
554
+ 'displayAbbr' => 'MIL',
555
+ 'displayConference' => 'Eastern',
556
+ 'division' => 'Central',
557
+ 'id' => '1610612749',
558
+ 'name' => 'Bucks',
559
+ 'color' => 'C41230',
560
+ 'colors' => ['C41230', '003815', 'BAC4CA']
561
+ }, 'MIN' => {
562
+ 'abbr' => 'MIN',
563
+ 'city' => 'Minnesota',
564
+ 'code' => 'timberwolves',
565
+ 'conference' => 'Western',
566
+ 'displayAbbr' => 'MIN',
567
+ 'displayConference' => 'Western',
568
+ 'division' => 'Northwest',
569
+ 'id' => '1610612750',
570
+ 'name' => 'Timberwolves',
571
+ 'color' => '#003F70',
572
+ 'colors' => ['003F70', '006F42', 'BAC4CA', 'FFE211', 'DE2032', '000000']
573
+ }, 'NOP' => {
574
+ 'abbr' => 'NOP',
575
+ 'city' => 'New Orleans',
576
+ 'code' => 'pelicans',
577
+ 'conference' => 'Western',
578
+ 'displayAbbr' => 'NOP',
579
+ 'displayConference' => 'Western',
580
+ 'division' => 'Southwest',
581
+ 'id' => '1610612740',
582
+ 'name' => 'Pelicans',
583
+ 'color' => '#002B5C',
584
+ 'colors' => ['002B5C', 'B4975A', 'E13A3E']
585
+ }, 'NYK' => {
586
+ 'abbr' => 'NYK',
587
+ 'city' => 'New York',
588
+ 'code' => 'knicks',
589
+ 'conference' => 'Eastern',
590
+ 'displayAbbr' => 'NYK',
591
+ 'displayConference' => 'Eastern',
592
+ 'division' => 'Atlantic',
593
+ 'id' => '1610612752',
594
+ 'name' => 'Knicks',
595
+ 'color' => 'F3571F',
596
+ 'colors' => ['F3571F', '0067B2', 'BAC4CA']
597
+ }, 'OKC' => {
598
+ 'abbr' => 'OKC',
599
+ 'city' => 'Oklahoma City',
600
+ 'code' => 'thunder',
601
+ 'conference' => 'Western',
602
+ 'displayAbbr' => 'OKC',
603
+ 'displayConference' => 'Western',
604
+ 'division' => 'Northwest',
605
+ 'id' => '1610612760',
606
+ 'name' => 'Thunder',
607
+ 'color' => 'FDBB30',
608
+ 'colors' => ['FDBB30', 'F05133', '007DC3', '002D62']
609
+ }, 'ORL' => {
610
+ 'abbr' => 'ORL',
611
+ 'city' => 'Orlando',
612
+ 'code' => 'magic',
613
+ 'conference' => 'Eastern',
614
+ 'displayAbbr' => 'ORL',
615
+ 'displayConference' => 'Eastern',
616
+ 'division' => 'Southeast',
617
+ 'id' => '1610612753',
618
+ 'name' => 'Magic',
619
+ 'color' => '006BB7',
620
+ 'colors' => ['006BB7', 'BAC4CA', '000000']
621
+ }, 'PHI' => {
622
+ 'abbr' => 'PHI',
623
+ 'city' => 'Philadelphia',
624
+ 'code' => 'sixers',
625
+ 'conference' => 'Eastern',
626
+ 'displayAbbr' => 'PHI',
627
+ 'displayConference' => 'Eastern',
628
+ 'division' => 'Atlantic',
629
+ 'id' => '1610612755',
630
+ 'name' => 'Sixers',
631
+ 'color' => 'EC003D',
632
+ 'colors' => ['EC003D', '00559A', 'BAC4CA']
633
+ }, 'PHX' => {
634
+ 'abbr' => 'PHX',
635
+ 'city' => 'Phoenix',
636
+ 'code' => 'suns',
637
+ 'conference' => 'Western',
638
+ 'displayAbbr' => 'PHX',
639
+ 'displayConference' => 'Western',
640
+ 'division' => 'Pacific',
641
+ 'id' => '1610612756',
642
+ 'name' => 'Suns',
643
+ 'color' => 'E45F1F',
644
+ 'colors' => ['E45F1F', 'F89F1B', 'BAC4CA', '000000']
645
+ }, 'POR' => {
646
+ 'abbr' => 'POR',
647
+ 'city' => 'Portland',
648
+ 'code' => 'blazers',
649
+ 'conference' => 'Western',
650
+ 'displayAbbr' => 'POR',
651
+ 'displayConference' => 'Western',
652
+ 'division' => 'Northwest',
653
+ 'id' => '1610612757',
654
+ 'name' => 'Trail Blazers',
655
+ 'color' => 'DE2032',
656
+ 'colors' => ['DE2032', 'BAC4CA', '000000']
657
+ }, 'SAC' => {
658
+ 'abbr' => 'SAC',
659
+ 'city' => 'Sacramento',
660
+ 'code' => 'kings',
661
+ 'conference' => 'Western',
662
+ 'displayAbbr' => 'SAC',
663
+ 'displayConference' => 'Western',
664
+ 'division' => 'Pacific',
665
+ 'id' => '1610612758',
666
+ 'name' => 'Kings',
667
+ 'color' => '542E91',
668
+ 'colors' => ['542E91', 'BAC4CA', '000000']
669
+ }, 'SAS' => {
670
+ 'abbr' => 'SAS',
671
+ 'city' => 'San Antonio',
672
+ 'code' => 'spurs',
673
+ 'conference' => 'Western',
674
+ 'displayAbbr' => 'SAS',
675
+ 'displayConference' => 'Western',
676
+ 'division' => 'Southwest',
677
+ 'id' => '1610612759',
678
+ 'name' => 'Spurs',
679
+ 'color' => '#BA24CA',
680
+ 'colors' => ['BA24CA', '000000']
681
+ }, 'TOR' => {
682
+ 'abbr' => 'TOR',
683
+ 'city' => 'Toronto',
684
+ 'code' => 'raptors',
685
+ 'conference' => 'Eastern',
686
+ 'displayAbbr' => 'TOR',
687
+ 'displayConference' => 'Eastern',
688
+ 'division' => 'Atlantic',
689
+ 'id' => '1610612761',
690
+ 'name' => 'Raptors',
691
+ 'color' => 'C60033',
692
+ 'colors' => ['C60033', 'BAC4CA']
693
+ }, 'UTA' => {
694
+ 'abbr' => 'UTA',
695
+ 'city' => 'Utah',
696
+ 'code' => 'jazz',
697
+ 'conference' => 'Western',
698
+ 'displayAbbr' => 'UTA',
699
+ 'displayConference' => 'Western',
700
+ 'division' => 'Northwest',
701
+ 'id' => '1610612762',
702
+ 'name' => 'Jazz',
703
+ 'color' => '#002A5C',
704
+ 'colors' => ['002A5C', '004812', 'FCB034', 'BACA4CA']
705
+ }, 'WAS' => {
706
+ 'abbr' => 'WAS',
707
+ 'city' => 'Washington',
708
+ 'code' => 'wizards',
709
+ 'conference' => 'Eastern',
710
+ 'displayAbbr' => 'WAS',
711
+ 'displayConference' => 'Eastern',
712
+ 'division' => 'Southeast',
713
+ 'id' => '1610612764',
714
+ 'name' => 'Wizards',
715
+ 'color' => '002A5B',
716
+ 'colors' => ['002A5B', 'E21836', 'BAC4CA']
717
+ }
718
+ }