Class: SportsDataApi::Ncaamb::Broadcast

Inherits:
Object
  • Object
show all
Defined in:
lib/sports_data_api/ncaamb/broadcast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml) ⇒ Broadcast



5
6
7
8
9
10
11
# File 'lib/sports_data_api/ncaamb/broadcast.rb', line 5

def initialize(xml)
  xml = xml.first if xml.is_a? Nokogiri::XML::NodeSet
  if xml.is_a? Nokogiri::XML::Element
    @network = xml['network']
    @satellite = xml['satellite']
  end
end

Instance Attribute Details

#networkObject (readonly)

Returns the value of attribute network.



4
5
6
# File 'lib/sports_data_api/ncaamb/broadcast.rb', line 4

def network
  @network
end

#satelliteObject (readonly)

Returns the value of attribute satellite.



4
5
6
# File 'lib/sports_data_api/ncaamb/broadcast.rb', line 4

def satellite
  @satellite
end