Sha256: 89aaab21db5ed6b0f0834d53da81cb35318c5029800a2b40590b2be5cf521543
Contents?: true
Size: 560 Bytes
Versions: 22
Compression:
Stored size: 560 Bytes
Contents
module SportsDataApi module Ncaamb class Venue attr_reader :id, :name, :address, :city, :state, :zip, :country, :capacity def initialize(xml) xml = xml.first if xml.is_a? Nokogiri::XML::NodeSet if xml.is_a? Nokogiri::XML::Element @id = xml['id'] @name = xml['name'] @address = xml['address'] @city = xml['city'] @state = xml['state'] @zip = xml['zip'] @country = xml['country'] @capacity = xml['capacity'] end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems