Class: CloudCrowd::NodeRecord::Serializer

Inherits:
ActiveModel::Serializer
  • Object
show all
Defined in:
lib/cloud_crowd/models/node_record.rb

Overview

The JSON representation of a NodeRecord includes its worker_pids.

Instance Method Summary collapse

Instance Method Details

#statusObject


117
118
119
# File 'lib/cloud_crowd/models/node_record.rb', line 117

def status
  object.display_status
end

#workersObject


113
114
115
# File 'lib/cloud_crowd/models/node_record.rb', line 113

def workers
  object.worker_pids
end