class Ecoportal::API::V2::Pages::PageStage
Public Instance Methods
current_stage()
click to toggle source
@return [Ecoportal::API::V2::Page::Stage]
# File lib/ecoportal/api/v2/pages/page_stage.rb, line 19 def current_stage if stage_id = current_stage_id stages[stage_id] end end
current_stage_id()
click to toggle source
`id` of the stage we got the data of.
# File lib/ecoportal/api/v2/pages/page_stage.rb, line 14 def current_stage_id doc.dig("active_stage", "id") || doc["current_stage_id"] end