Class: Cyclid::API::Stage

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/cyclid/models/stage.rb

Overview

Model for Stages

Class Method Summary collapse

Class Method Details

.all_as_hashObject

Return the collection of Stages as an array of Hashes (instead of Stage objects)



27
28
29
# File 'app/cyclid/models/stage.rb', line 27

def all_as_hash
  all.to_a.map(&:serializable_hash)
end