Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `new' for nil:NilClass (NoMethodError) #20

Open
glenviewjeff opened this issue May 12, 2015 · 0 comments
Open

undefined method `new' for nil:NilClass (NoMethodError) #20

glenviewjeff opened this issue May 12, 2015 · 0 comments

Comments

@glenviewjeff
Copy link

Trying out RXSD for the first time using the simple example in conjunction w/Zillow API. Send me a private message for the URLs (can't publish my Zillow API key.)

  xsd_uri = "http://www.zillow.com/static/xsd/SearchResults.xsd"
  xml_uri = "http://www.zillow.com/webservice/GetDeepSearchResults.htm?zws-id=[GET YOUR OWN ZWS ID FROM ZILLOW]&address=2114+Bigelow+Ave&citystatezip=Seattle%2C+WA"
  schema = RXSD::Parser.parse_xsd :uri => xsd_uri

 data = RXSD::Parser.parse_xml :uri => xml_uri
 objs = data.to :ruby_objects, :schema => schema
 objs.each {  |obj|
   puts "#{obj}"
   }

/home/action/.gem/ruby/2.1.1/gems/rxsd-0.5.2/lib/rxsd/builders/ruby_object.rb:24:in build': undefined methodnew' for nil:NilClass (NoMethodError)
from /home/action/.gem/ruby/2.1.1/gems/rxsd-0.5.2/lib/rxsd/translator.rb:118:in block in to' from /home/action/.gem/ruby/2.1.1/gems/rxsd-0.5.2/lib/rxsd/translator.rb:114:ineach'
from /home/action/.gem/ruby/2.1.1/gems/rxsd-0.5.2/lib/rxsd/translator.rb:114:in to' from test.rb:22:insayHi'
from test.rb:30:in `

'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant