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

- (Object) status



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

def status
  object.display_status
end

- (Object) workers



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

def workers
  object.worker_pids
end