Forked from big-samantha/hash_of_names_and_original_object.rb
Last active
April 1, 2016 23:11
-
-
Save Papierkorb/55ec5deea501f8979a46d19719b3381f to your computer and use it in GitHub Desktop.
This file contains 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
def networks | |
self.datacenter.network.map do |dc_obj| | |
dc_obj_name = dc_obj.name | |
[dc_obj_name, dc_obj] | |
end.to_h | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment