class SportsDataApi::Ncaamb::TournamentGame
Attributes
bracket[R]
id[R]
round_name[R]
round_number[R]
Public Class Methods
new(args={})
click to toggle source
Calls superclass method
# File lib/sports_data_api/ncaamb/tournament_game.rb, line 6 def initialize(args={}) xml = args.fetch(:xml) @bracket = args[:bracket] round = args[:round] || {} @round_name = round[:name] @round_number = round[:number] ? round[:number].to_i : nil xml = xml.first if xml.is_a? Nokogiri::XML::NodeSet if xml.is_a? Nokogiri::XML::Element @id = xml['id'] end super(Game.new(year: args[:year], season: args[:season], xml: xml)) end