class MLBStatsAPI::Team

Public Instance Methods

abbreviation() click to toggle source
# File lib/mlb_stats_api/team.rb, line 17
def abbreviation
  @data['abbreviation']
end
Also aliased as: code
code()
Alias for: abbreviation
division_id() click to toggle source
# File lib/mlb_stats_api/team.rb, line 34
def division_id
  @data.dig('division', 'id')
end
file_code() click to toggle source
# File lib/mlb_stats_api/team.rb, line 22
def file_code
  @data['fileCode']
end
full_name() click to toggle source
# File lib/mlb_stats_api/team.rb, line 38
def full_name
  @data['name']
end
id() click to toggle source
# File lib/mlb_stats_api/team.rb, line 5
def id
  @data['id']
end
inspect() click to toggle source

So we don't get huge printouts

# File lib/mlb_stats_api/team.rb, line 43
def inspect
  %(#<MLBGameday::Team @name="#{name}">)
end
league_id() click to toggle source
# File lib/mlb_stats_api/team.rb, line 30
def league_id
  @data.dig('league', 'id')
end
location() click to toggle source
# File lib/mlb_stats_api/team.rb, line 13
def location
  @data['locationName']
end
name() click to toggle source
# File lib/mlb_stats_api/team.rb, line 9
def name
  @data['teamName']
end
short_name() click to toggle source
# File lib/mlb_stats_api/team.rb, line 26
def short_name
  @data['shortName']
end