Method: UpGuard::Environment#to_hash

Defined in:
lib/upguard/Environment.rb

#to_hashObject



39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/upguard/Environment.rb', line 39

def to_hash
  h = {}
  h['description'] = self.description
  h['id'] = self.id
  h['name'] = self.name
  h['node_rules'] = self.node_rules
  h['short_description'] = self.short_description
  h['updated_by'] = self.updated_by
  h['created_by'] = self.created_by
  h['updated_at'] = self.updated_at
  h['created_at'] = self.created_at
  h['weight'] = self.weight
  return h
end