estately / rets

A pure-ruby library for fetching data from RETS servers
https://github.com/estately/rets
127 stars 94 forks source link

rets_class_name is integer #170

Closed Galaxy83 closed 8 years ago

Galaxy83 commented 8 years ago

I got a RETS provider who return rets_class_name as integer so the method 'find_rets_class' cannot find any classes. Should be fixed to: rets_classes.detect {|rc| rc.name == rets_class_name.to_s }

Thanks.

dougcole commented 8 years ago

I think I'm missing some context, but it seems like you should be able to pass the rets_class_name in as a string instead.

If I'm wrong above, could you help explain the scenario where you are having problems? Thanks!

Galaxy83 commented 8 years ago

I could have sworn I was passing a String. I wasn't. Had [1,2,3] instead of ["1","2","3"] in a Yaml file. Then I was sure that rets_class_name was passed from the provider. DOH!

dougcole commented 8 years ago

No problem, I'll close this issue then.