lib/rsqoot/category.rb in rsqoot-0.4.2 vs lib/rsqoot/category.rb in rsqoot-0.5.0

- old
+ new

@@ -1,15 +1,15 @@ module RSqoot module Category # Retrieve a list of categories base on the following parameters # - # @return [Hashie::Mash] category list + # @return [RSqoot::SqootCategory] category list def categories(options={}) options = update_by_expire_time options query = options.delete(:query) if categories_not_latest?(options) - @rsqoot_categories = get('categories', options) + @rsqoot_categories = get('categories', options, SqootCategory) @rsqoot_categories = @rsqoot_categories.categories.map(&:category) if @rsqoot_categories end query.present? ? query_categories(query) : @rsqoot_categories end \ No newline at end of file