# File lib/blimpy/box.rb, line 19 def self.from_instance_id(an_id, data) return if data[:type].nil? name = data[:type].to_sym return unless Blimpy::Boxes.const_defined? name klass = Blimpy::Boxes.const_get(name) server = klass.fog_server_for_instance(an_id, data) return if server.nil? box = klass.new(server) box.with_data(an_id, data) box end