lib/locabulary.rb in locabulary-0.6.2 vs lib/locabulary.rb in locabulary-0.7.1
- old
+ new
@@ -27,19 +27,33 @@
end
# @api public
# @since 0.1.0
#
- # Responsible for extracting a non-hierarchical sorted array of Locabulary::Items::Base objects for the given predicate_name.
+ # Responsible for extracting a non-hierarchical sorted array of active Locabulary::Items::Base objects for the given predicate_name.
#
# @param [Hash] options
# @option options [String] :predicate_name
# @option options [Date] :as_of (Date.today)
# @return [Array<Locabulary::Items::Base>]
#
# @see Locabulary::Services
def self.active_items_for(options = {})
Services.call(:active_items_for, options)
+ end
+
+ # @api public
+ # @since 0.7.0
+ #
+ # Responsible for extracting a non-hierarchical sorted array of Locabulary::Items::Base objects for the given predicate_name.
+ #
+ # @param [Hash] options
+ # @option options [String] :predicate_name
+ # @return [Array<Locabulary::Items::Base>]
+ #
+ # @see Locabulary::Services
+ def self.all_items_for(options = {})
+ Services.call(:all_items_for, options)
end
# @api public
# @since 0.4.0
#