Sha256: a3780468007d5698461032326cffe516953b97fe7d413567d2225a85627582ac
Contents?: true
Size: 807 Bytes
Versions: 7
Compression:
Stored size: 807 Bytes
Contents
module Ecoportal module API class V2 class Page class Stages < Common::Content::CollectionModel class_resolver :stage_class, "Ecoportal::API::V2::Page::Stage" self.klass = :stage_class self.order_key = :ordering def ooze _parent.ooze end # @param name [String, Regexp] the `name` of the stage to find. # @return [Ecoportal::API::V2::Page::Stage, nil] def get_by_name(name) find do |stage| same_string?(stage.name, name) end end def ordered sort_by.with_index do |stage, index| [stage.ordering, index] end end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems