Method: UpGuard::ConnectionManager#to_hash

Defined in:
lib/upguard/ConnectionManager.rb

#to_hashObject



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/upguard/ConnectionManager.rb', line 42

def to_hash
  h = {}
  h['agent_version'] = self.agent_version
  h['agent_type'] = self.agent_type
  h['channels'] = self.channels
  h['connection_manager_group_id'] = self.connection_manager_group_id
  h['created_at'] = self.created_at
  h['id'] = self.id
  h['ip_address'] = self.ip_address
  h['hostname'] = self.hostname
  h['last_contact'] = self.last_contact
  h['stats'] = self.stats
  h['updated_at'] = self.updated_at
  return h
end