Class: MetadataPresenter::Flow
  
  
  
  Instance Attribute Summary
  
  Attributes inherited from Metadata
  #metadata
  
    
      Instance Method Summary
      collapse
    
    
  
  
  
  
  
  
  
  
  
  Methods inherited from Metadata
  #==, #editor?, #id, #initialize, #method_missing, #respond_to_missing?, #to_json, #type, #uuid
  
  
  
    Instance Method Details
    
      
  
  
    #branch?  ⇒ Boolean 
  
  
  
  
    
      
3
4
5 
     | 
    
      # File 'app/models/metadata_presenter/flow.rb', line 3
def branch?
  type == 'branch'
end 
     | 
  
 
    
      
  
  
    #conditions  ⇒ Object 
  
  
  
  
    
      
11
12
13
14
15 
     | 
    
      # File 'app/models/metadata_presenter/flow.rb', line 11
def conditions
  Array(metadata['next']['conditions']).map do |condition_metadata|
    Condition.new(condition_metadata)
  end
end
     | 
  
 
    
      
  
  
    #default_next  ⇒ Object 
  
  
  
  
    
      
7
8
9 
     | 
    
      # File 'app/models/metadata_presenter/flow.rb', line 7
def default_next
  metadata['next']['default']
end 
     | 
  
 
    
      
  
  
    #group_by_page  ⇒ Object 
  
  
  
  
    
      
17
18
19 
     | 
    
      # File 'app/models/metadata_presenter/flow.rb', line 17
def group_by_page
  conditions.group_by(&:next)
end 
     |