Sha256: 4fd7084d266998e917beb762b4f4508a1485cad5d5cfb4c3439066a66a56cc08
Contents?: true
Size: 690 Bytes
Versions: 4
Compression:
Stored size: 690 Bytes
Contents
module RSqoot module Category # Retrieve a list of categories base on the following parameters # # @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, SqootCategory) @rsqoot_categories = @rsqoot_categories.categories.map(&:category) if @rsqoot_categories end result = query.present? ? query_categories(query) : @rsqoot_categories logger({uri: sqoot_query_uri, records: result, type: 'categories', opts: options}) result end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rsqoot-0.5.5 | lib/rsqoot/category.rb |
rsqoot-0.5.4 | lib/rsqoot/category.rb |
rsqoot-0.5.3 | lib/rsqoot/category.rb |
rsqoot-0.5.2 | lib/rsqoot/category.rb |