Sha256: 1b52bb161191327ae4e71775b65285e7900560e0e31950632b8d94049546e64c
Contents?: true
Size: 557 Bytes
Versions: 15
Compression:
Stored size: 557 Bytes
Contents
module SportsDataApi module Nba 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
15 entries across 15 versions & 1 rubygems