to support DRY:

    def pod
      pod ||= dc.datastoreFolder.children.
        select{|d| RbVmomi::VIM::StoragePod === d}.
        find{|d| d.name == @resource[:name]} 
    end

or something like that