Created
February 2, 2017 17:45
-
-
Save lukedemi/f41b27636e19a39077893548d808015c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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