class PactBroker::UI::ViewDomain::IndexItems
Attributes
Public Class Methods
Source
# File lib/pact_broker/ui/view_models/index_items.rb, line 10 def initialize index_items, options = {} # Why are we sorting twice!? @index_items = index_items.collect{ |index_item| IndexItem.new(index_item, options) }.sort # until the feature flag is turned on @pagination_record_count = index_items.size @pagination_record_count = index_items.pagination_record_count if index_items.respond_to?(:pagination_record_count) end
Public Instance Methods
Source
# File lib/pact_broker/ui/view_models/index_items.rb, line 18 def each(&block) index_items.each(&block) end
Source
# File lib/pact_broker/ui/view_models/index_items.rb, line 22 def empty? index_items.empty? end
Source
# File lib/pact_broker/ui/view_models/index_items.rb, line 26 def size index_items.size end