Skip to content

Instantly share code, notes, and snippets.

@lukedemi
Created February 2, 2017 17:45
Show Gist options
  • Save lukedemi/f41b27636e19a39077893548d808015c to your computer and use it in GitHub Desktop.
Save lukedemi/f41b27636e19a39077893548d808015c to your computer and use it in GitHub Desktop.
class GeoEngineer::Project
after :initialize, :setup_default_tags
def setup_default_tags
defaults = {
org: org,
ProjectName: name
}
self.tags = GeoEngineer::SubResource.new(self, 'tags') unless self.tags
defaults.each do |key, value|
self.tags[key] = value unless self.tags[key]
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment