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



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

def status
  object.display_status
end

#workersObject



109
110
111
# File 'lib/cloud_crowd/models/node_record.rb', line 109

def workers
  object.worker_pids
end