class RedmineRest::Models::Collections::Base
Base
class for most custom collections
Public Instance Methods
filter_by_name_substring(str)
click to toggle source
# File lib/redmine_rest/models/collections/base.rb, line 11 def filter_by_name_substring(str) str = Unicode.downcase(str) self.class.new @elements.find_all { |e| Unicode.downcase(e.name).include? str } end