thoughtfusion/suitcase — pull request #12 by hovatterz (2012-04-26 02:37:21+00:00)
Title: add amenity bitmask parsing

This adds a list of amenities to hotels when you do a 'list' request. It is accessible from hotel.masked_amenities and it will either be an array of symbols or nil. It uses the amenity bitmask from the summary of each hotel.

This might be a bit of an edge case use, but I'm using it to parse amenity information without having to do another request for detailed hotel information.

I figured putting the parsing method and bits hash on the Amenity class would be fine. Let me know if you'd rather it be in some sort of AmenityBitmaskParser object or something like that.

Thanks,
Zack